From ce06956d314dc8d7080ba96b76f4ee8ad851912a Mon Sep 17 00:00:00 2001 From: aqua Date: Wed, 17 Aug 2022 22:48:01 +0300 Subject: Show main window - added Task Manager, showing all plugins, windows and view --- src/application_instance.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/application_instance.cpp') diff --git a/src/application_instance.cpp b/src/application_instance.cpp index c2005acd..42c77dc1 100644 --- a/src/application_instance.cpp +++ b/src/application_instance.cpp @@ -45,6 +45,10 @@ void Application::parseCommandLine(int instanceId, const QByteArray &message) const auto positionalArguments = parser.positionalArguments(); if (parser.isSet(options_webapp)) - positionalArguments.isEmpty() ? this->newWebApp() - : this->newWebApp(QUrl::fromUserInput(positionalArguments.first())); + positionalArguments.isEmpty() ? this->newView() : this->newView(QUrl::fromUserInput(positionalArguments.first())); + else { + // create main window + auto *window = newWindow(); + for (const auto &url : positionalArguments) newView(QUrl::fromUserInput(url), window); + } } -- cgit v1.2.1