From d9c9c30865330b24349438e4e20579fd76dafbd5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 10:01:49 +0200 Subject: desktop: report save results in the SaveBar, not at the page's foot A save's outcome sat at the bottom of the page, out of sight on a long one, while "unsaved changes" was already in the header. SaveBar gains notice, shown once the page is clean, and error, shown in red over the unsaved mark, since a refused or failed write leaves the draft dirty. Wired for notifications, HyprIdle, Sunset, Wallpaper and the four Mail pages, with their longer messages shortened to fit the header. Messages that are not save results stay in their pages: the icon theme's immediate apply, Sunset's location detection, the assistant restart. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/qtmaildir/Qtm.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/modules/qtmaildir/Qtm.qml') diff --git a/desktop/modules/qtmaildir/Qtm.qml b/desktop/modules/qtmaildir/Qtm.qml index 3f6175b..554841b 100644 --- a/desktop/modules/qtmaildir/Qtm.qml +++ b/desktop/modules/qtmaildir/Qtm.qml @@ -82,7 +82,7 @@ Singleton { // here (AGENTS.md: it writes nothing for empty text on an unloaded path). function save() { if (root.text !== root.base) { - root.error = "qtmaildir.conf changed on disk since these edits began. Discard to load it, then redo them."; + root.error = "changed on disk: Discard to load it, then redo"; return; } root.error = ""; @@ -119,7 +119,7 @@ Singleton { if (!root.dirty) { root.base = root.text; root.draft = root.text; } } onLoadFailed: if (!root.dirty) { root.text = ""; root.base = ""; root.draft = ""; } - onSaveFailed: err => root.error = "Cannot write " + root.path + ": " + FileViewError.toString(err) + onSaveFailed: err => root.error = "cannot write: " + FileViewError.toString(err) } Process { -- cgit v1.2.3