summaryrefslogtreecommitdiff
path: root/gui/components/InitErrors.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-08-31 21:59:35 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:50:59 +0100
commit815c26850266eba2e4e5d02509487452624b1c64 (patch)
tree48aeca1a7e52003127e6924ef71cf539a034b903 /gui/components/InitErrors.qml
parentcd1d46a26b923260b6c87cc93a0723b8166c609e (diff)
[ui] fonts + bugfixing
Diffstat (limited to 'gui/components/InitErrors.qml')
-rw-r--r--gui/components/InitErrors.qml49
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
+ }
+ }
+ ]
+}