Consolidate help handling into ErrorMessageDialog
This commit is contained in:
parent
2cd32bf25a
commit
060a00b9c7
8 changed files with 12 additions and 30 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue