Don't run configuration checks for CLI launches

This commit is contained in:
Cameron Gutman
2026-01-08 19:10:50 -06:00
parent fad197fdce
commit 37b9b6ed9e
2 changed files with 12 additions and 9 deletions

View File

@@ -51,6 +51,7 @@ ApplicationWindow {
}
// Display any modal dialogs for configuration warnings
if (runConfigChecks) {
if (SystemProperties.isWow64) {
wow64Dialog.open()
}
@@ -63,6 +64,7 @@ ApplicationWindow {
// Hardware acceleration is checked asynchronously
SystemProperties.hasHardwareAccelerationChanged.connect(hasHardwareAccelerationChanged)
}
}
function hasHardwareAccelerationChanged() {
if (!SystemProperties.hasHardwareAcceleration && StreamingPreferences.videoDecoderSelection !== StreamingPreferences.VDS_FORCE_SOFTWARE) {

View File

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