Commit 906d5e09 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Mark the window as invisible when calling with --feedback

This way it shouldn't glitch into the task manager

BUG: 423493
parent 14190aea
......@@ -140,6 +140,7 @@ int main(int argc, char **argv)
DiscoverBackendsFactory::processCommandLine(, parser->isSet(QStringLiteral("test")));
const bool feedback = parser->isSet(QStringLiteral("feedback"));
if (parser->isSet(QStringLiteral("listbackends"))) {
QTextStream(stdout) << i18n("Available backends:\n");
......@@ -163,6 +164,9 @@ int main(int argc, char **argv)
QVariantMap initialProperties;
if (!options.isEmpty() || !parser->positionalArguments().isEmpty())
initialProperties = {{QStringLiteral("currentTopLevel"), QStringLiteral("qrc:/qml/LoadingPage.qml")}};
if (feedback) {
initialProperties.insert("visible", false);
mainWindow = new DiscoverObject(s_decodeCompactMode->value(parser->value(QStringLiteral("compact")), DiscoverObject::Full), initialProperties);
QObject::connect(&app, &QCoreApplication::aboutToQuit, mainWindow, &DiscoverObject::deleteLater);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment