mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
[Client] Reuse one IntentUrlParser instance for cockatrice:// links
Took 59 seconds
This commit is contained in:
parent
bffe4f1490
commit
3bb355278d
2 changed files with 3 additions and 1 deletions
|
|
@ -498,6 +498,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
pixmapCacheSizeChanged(SettingsCache::instance().cacheStorage().getPixmapCacheSize());
|
pixmapCacheSizeChanged(SettingsCache::instance().cacheStorage().getPixmapCacheSize());
|
||||||
|
|
||||||
connectionController = new ConnectionController(this, this);
|
connectionController = new ConnectionController(this, this);
|
||||||
|
urlParser = new IntentUrlParser(this, this);
|
||||||
|
|
||||||
createActions();
|
createActions();
|
||||||
createMenus();
|
createMenus();
|
||||||
|
|
@ -865,7 +866,6 @@ void MainWindow::showWindowIfHidden()
|
||||||
|
|
||||||
void MainWindow::handleCockatriceLink(const QString &url)
|
void MainWindow::handleCockatriceLink(const QString &url)
|
||||||
{
|
{
|
||||||
auto urlParser = new IntentUrlParser(this, this);
|
|
||||||
urlParser->handle(url);
|
urlParser->handle(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ class TabSupervisor;
|
||||||
class WndSets;
|
class WndSets;
|
||||||
class DlgTipOfTheDay;
|
class DlgTipOfTheDay;
|
||||||
struct ContextConnectToServer;
|
struct ContextConnectToServer;
|
||||||
|
class IntentUrlParser;
|
||||||
|
|
||||||
class MainWindow : public QMainWindow
|
class MainWindow : public QMainWindow
|
||||||
{
|
{
|
||||||
|
|
@ -140,6 +141,7 @@ private:
|
||||||
*aOpenSettingsFolder;
|
*aOpenSettingsFolder;
|
||||||
|
|
||||||
TabSupervisor *tabSupervisor;
|
TabSupervisor *tabSupervisor;
|
||||||
|
IntentUrlParser *urlParser;
|
||||||
WndSets *wndSets;
|
WndSets *wndSets;
|
||||||
ConnectionController *connectionController;
|
ConnectionController *connectionController;
|
||||||
LocalServer *localServer;
|
LocalServer *localServer;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue