Only display help options on platforms with web browsers

This commit is contained in:
Cameron Gutman 2019-03-23 13:51:34 -07:00
commit 03c0be0720
8 changed files with 43 additions and 44 deletions

View file

@ -174,24 +174,17 @@ Item {
wrapMode: Text.Wrap
}
MessageDialog {
ErrorMessageDialog {
id: errorDialog
modality:Qt.WindowModal
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok | StandardButton.Help
onAccepted: {
if (quitAfter) {
onVisibleChanged: {
if (!visible) {
Qt.quit()
}
}
onHelp: {
Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");
if (quitAfter) {
Qt.quit()
}
}
}
}