Warn portable users if they download the wrong version

This commit is contained in:
Cameron Gutman
2018-09-22 14:16:48 -07:00
parent 97e5acecd7
commit 926b192722
3 changed files with 25 additions and 0 deletions
+14
View File
@@ -37,6 +37,9 @@ GridView {
if (prefs.isRunningWayland()) {
waylandDialog.open()
}
else if (prefs.isWow64()) {
wow64Dialog.open()
}
else if (!prefs.hasAnyHardwareAcceleration()) {
noHwDecoderDialog.open()
}
@@ -224,6 +227,17 @@ GridView {
}
}
MessageDialog {
id: wow64Dialog
modality:Qt.WindowModal
icon: StandardIcon.Warning
standardButtons: StandardButton.Ok | StandardButton.Cancel
text: "This PC is running a 64-bit version of Windows. Please download the x64 version of Moonlight for the best streaming performance."
onAccepted: {
Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-qt/releases");
}
}
MessageDialog {
id: pairDialog
// don't allow edits to the rest of the window while open