mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-23 08:29:09 +00:00
Only display help options on platforms with web browsers
This commit is contained in:
13
app/gui/ErrorMessageDialog.qml
Normal file
13
app/gui/ErrorMessageDialog.qml
Normal file
@@ -0,0 +1,13 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Dialogs 1.2
|
||||
|
||||
import SystemProperties 1.0
|
||||
|
||||
MessageDialog {
|
||||
property string helpText
|
||||
|
||||
informativeText: SystemProperties.hasBrowser ? helpText : ""
|
||||
icon: StandardIcon.Critical
|
||||
standardButtons: StandardButton.Ok |
|
||||
(SystemProperties.hasBrowser ? StandardButton.Help : 0)
|
||||
}
|
||||
Reference in New Issue
Block a user