Consolidate help handling into ErrorMessageDialog

This commit is contained in:
Cameron Gutman
2019-03-31 15:16:48 -07:00
parent 2cd32bf25a
commit 060a00b9c7
8 changed files with 12 additions and 30 deletions

View File

@@ -5,9 +5,14 @@ import SystemProperties 1.0
NavigableMessageDialog {
property string helpText
property string helpUrl : "https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"
informativeText: SystemProperties.hasBrowser ? helpText : ""
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok |
(SystemProperties.hasBrowser ? StandardButton.Help : 0)
onHelp: {
Qt.openUrlExternally(helpUrl)
}
}