From 61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 21 Sep 2025 17:33:28 +1000 Subject: feat: add battery warnings Closes #73 Closes #117 --- modules/utilities/toasts/Toasts.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/utilities/toasts/Toasts.qml') diff --git a/modules/utilities/toasts/Toasts.qml b/modules/utilities/toasts/Toasts.qml index c23790d..c9a8d4d 100644 --- a/modules/utilities/toasts/Toasts.qml +++ b/modules/utilities/toasts/Toasts.qml @@ -58,6 +58,11 @@ Item { return index >= Config.utilities.maxToasts + extraHidden; } + onPreviewHiddenChanged: { + if (initAnim.running && previewHidden) + initAnim.stop(); + } + opacity: modelData.closed || previewHidden ? 0 : 1 scale: modelData.closed || previewHidden ? 0.7 : 1 @@ -83,6 +88,8 @@ Item { Component.onCompleted: modelData.lock(this) Anim { + id: initAnim + Component.onCompleted: running = !toast.previewHidden target: toast -- cgit v1.2.3-freya