Don't start polling from the GUI for a CLI launch

We can end up missing early computerStateChanged signals.

Fixes #2039
This commit is contained in:
Cameron Gutman committed 2026-10-22 19:28:12 -05:00
1 parent dc92b6d2f3
commit 74020b537b
2 files changed
+37 -29

No files matched your search

+1 -1
View File
@@ -1034,7 +1034,7 @@ int main(int argc, char *argv[])
if (hasGUI) {
engine.rootContext()->setContextProperty("initialView", initialView);
engine.rootContext()->setContextProperty("runConfigChecks", commandLineParserResult == GlobalCommandLineParser::NormalStartRequested);
engine.rootContext()->setContextProperty("isGuiLaunch", commandLineParserResult == GlobalCommandLineParser::NormalStartRequested);
// Load the main.qml file
engine.load(QUrl(QStringLiteral("qrc:/gui/main.qml")));