diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-05 10:33:38 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-05 10:34:22 +0530 |
| commit | 7e09b35b008f58809ac56184a4f83ab875c038e0 (patch) | |
| tree | 3f7acdb64d2b063760fa22529826aa418e249750 /src/widgets/BrowserApp.cpp | |
| parent | 8eda8343757b2161535388387b0525e0fd56f569 (diff) | |
| download | null-browser-7e09b35b008f58809ac56184a4f83ab875c038e0.tar.gz null-browser-7e09b35b008f58809ac56184a4f83ab875c038e0.zip | |
Add instance manager for enforcing single instance
Diffstat (limited to 'src/widgets/BrowserApp.cpp')
| -rw-r--r-- | src/widgets/BrowserApp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/BrowserApp.cpp b/src/widgets/BrowserApp.cpp index 2ab47c2..4977a2a 100644 --- a/src/widgets/BrowserApp.cpp +++ b/src/widgets/BrowserApp.cpp @@ -21,11 +21,11 @@ BrowserApp::BrowserApp() { lua.load_file("./config.lua"); connect(&window_action_router, &WindowActionRouter::new_window_requested, - this, [this](const QUrl &url) { create_window(url.toString()); }); + this, [this](const QUrl &url) { create_window({url.toString()}); }); }; -BrowserWindow *BrowserApp::create_window(const QString &url) { - auto *window = new BrowserWindow((const Configuration &)configuration, url); +BrowserWindow *BrowserApp::create_window(const QStringList &urls) { + auto *window = new BrowserWindow((const Configuration &)configuration, urls); window->setWindowTitle("null-browser"); WindowActionRouter::instance().add_window(window); window->show(); |
