mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-22 16:08:45 +00:00
Consolidate help handling into ErrorMessageDialog
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user