mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 22:50:57 +00:00
Don't run configuration checks for CLI launches
This commit is contained in:
+11
-9
@@ -51,17 +51,19 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Display any modal dialogs for configuration warnings
|
// Display any modal dialogs for configuration warnings
|
||||||
if (SystemProperties.isWow64) {
|
if (runConfigChecks) {
|
||||||
wow64Dialog.open()
|
if (SystemProperties.isWow64) {
|
||||||
}
|
wow64Dialog.open()
|
||||||
|
}
|
||||||
|
|
||||||
if (SystemProperties.unmappedGamepads) {
|
if (SystemProperties.unmappedGamepads) {
|
||||||
unmappedGamepadDialog.unmappedGamepads = SystemProperties.unmappedGamepads
|
unmappedGamepadDialog.unmappedGamepads = SystemProperties.unmappedGamepads
|
||||||
unmappedGamepadDialog.open()
|
unmappedGamepadDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hardware acceleration is checked asynchronously
|
// Hardware acceleration is checked asynchronously
|
||||||
SystemProperties.hasHardwareAccelerationChanged.connect(hasHardwareAccelerationChanged)
|
SystemProperties.hasHardwareAccelerationChanged.connect(hasHardwareAccelerationChanged)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasHardwareAccelerationChanged() {
|
function hasHardwareAccelerationChanged() {
|
||||||
|
|||||||
@@ -926,6 +926,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (hasGUI) {
|
if (hasGUI) {
|
||||||
engine.rootContext()->setContextProperty("initialView", initialView);
|
engine.rootContext()->setContextProperty("initialView", initialView);
|
||||||
|
engine.rootContext()->setContextProperty("runConfigChecks", commandLineParserResult == GlobalCommandLineParser::NormalStartRequested);
|
||||||
|
|
||||||
// Load the main.qml file
|
// Load the main.qml file
|
||||||
engine.load(QUrl(QStringLiteral("qrc:/gui/main.qml")));
|
engine.load(QUrl(QStringLiteral("qrc:/gui/main.qml")));
|
||||||
|
|||||||
Reference in New Issue
Block a user