diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-08-31 21:59:35 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-10-06 18:37:22 +0200 |
commit | 2f25b390632de1c42567a9338c71060377f4a082 (patch) | |
tree | 613d73e62b8878a85926de7dde01ec418e23e195 /gui/components/InitErrors.qml | |
parent | 15f2efc9aa77893d5300d198dd3b5c42549018e8 (diff) |
[ui] fonts + bugfixing
Diffstat (limited to 'gui/components/InitErrors.qml')
-rw-r--r-- | gui/components/InitErrors.qml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gui/components/InitErrors.qml b/gui/components/InitErrors.qml new file mode 100644 index 0000000..2859168 --- /dev/null +++ b/gui/components/InitErrors.qml @@ -0,0 +1,49 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.2 +import QtGraphicalEffects 1.0 + +ErrorBox { + + state: "noerror" + + states: [ + State { + name: "noerror" + when: root.error == "" + PropertyChanges { + target: splashSpinner + visible: true + } + PropertyChanges { + target: splashErrorBox + visible: false + } + }, + State { + name: "nohelpers" + when: root.error == "nohelpers" + PropertyChanges { + target: splashSpinner + visible: false + } + PropertyChanges { + target: splashErrorBox + errorText: qsTr("Could not find helpers. Please check your installation") + visible: true + } + }, + State { + name: "nopolkit" + when: root.error == "nopolkit" + PropertyChanges { + target: splashSpinner + visible: false + } + PropertyChanges { + target: splashErrorBox + errorText: qsTr("Could not find polkit agent.") + visible: true + } + } + ] +} |