aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/sonix/BootlogoTab.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/sonix/BootlogoTab.qml')
-rw-r--r--desktop/modules/sonix/BootlogoTab.qml15
1 files changed, 3 insertions, 12 deletions
diff --git a/desktop/modules/sonix/BootlogoTab.qml b/desktop/modules/sonix/BootlogoTab.qml
index 4a34dc7..96454a2 100644
--- a/desktop/modules/sonix/BootlogoTab.qml
+++ b/desktop/modules/sonix/BootlogoTab.qml
@@ -37,10 +37,10 @@ Row {
property bool busy: false
property bool waiting: false
- property string status: ""
- property bool statusError: false
readonly property bool canSave: canvas.ready && !tab.busy
- function say(t, err) { tab.status = t; tab.statusError = !!err; }
+ // To the window's snackbar (Snack.qml): yellow while waiting for Wi-Fi
+ // transfer, red on failure, green otherwise.
+ function say(t, err) { if (tab.waiting) Snack.wait(t); else if (err) Snack.error(t); else Snack.ok(t); }
readonly property var swatches: ["#ffffff", "#000000", "#3584e4", "#ff7800", "#e5a50a",
"#2ec27e", "#9141ac", "#d56199", "udt"]
@@ -319,15 +319,6 @@ Row {
enabled: Sonix.present && !tab.busy && !tab.waiting
onClicked: pickSaved.open()
}
- // Save and upload results, in full: the header has no room for them.
- Text {
- visible: tab.status !== ""
- width: parent.width
- wrapMode: Text.Wrap
- text: tab.status
- font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 3 }
- color: tab.waiting ? Theme.yellow : tab.statusError ? Theme.red : Theme.green
- }
Text {
width: parent.width
wrapMode: Text.Wrap