diff --git a/settings/quickshell.nix b/settings/quickshell.nix index a4eeb7f..7b9845b 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -1752,7 +1752,7 @@ in viewMonth = clockText.now.getMonth(); // Runs on every open: an on-screen toast is redundant // once the notification list is visible. - if (toastItem.visible) toastItem.dismiss(); + if (toastItem.visible) toastItem.hideNow(); } function shiftMonth(d) { let m = viewMonth + d; @@ -2325,6 +2325,14 @@ in _toastCloseDelay.start(); } + // Instant hide, no close animation + function hideNow() { + _toastTimer.stop(); + _toastCloseDelay.stop(); + toastOpen = false; + visible = false; + } + Timer { id: _toastTimer interval: 5000