From fc0c163b0bcfabe8cc9b63b3059ce407021346b4 Mon Sep 17 00:00:00 2001 From: rope Date: Thu, 11 Jun 2026 15:20:17 +0100 Subject: [PATCH] quickshell: hide toast instantly when popup opens Co-Authored-By: Claude Fable 5 --- settings/quickshell.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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