fix opening right sidebar with mouse not dismissing notifs

This commit is contained in:
end-4
2025-10-12 09:59:29 +02:00
parent 63e81369c2
commit 7e46145df1
2 changed files with 6 additions and 5 deletions
+6 -1
View File
@@ -1,5 +1,6 @@
import qs.modules.common
import qs
import qs.modules.common
import qs.services
import QtQuick
import Quickshell
import Quickshell.Hyprland
@@ -44,6 +45,10 @@ Singleton {
}
}
onSidebarRightOpenChanged: {
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
}
property real screenZoom: 1
onScreenZoomChanged: {
Quickshell.execDetached(["hyprctl", "keyword", "cursor:zoom_factor", root.screenZoom.toString()]);
@@ -70,7 +70,6 @@ Scope {
function toggle(): void {
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
}
function close(): void {
@@ -79,7 +78,6 @@ Scope {
function open(): void {
GlobalStates.sidebarRightOpen = true;
Notifications.timeoutAll();
}
}
@@ -89,7 +87,6 @@ Scope {
onPressed: {
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
if(GlobalStates.sidebarRightOpen) Notifications.timeoutAll();
}
}
GlobalShortcut {
@@ -98,7 +95,6 @@ Scope {
onPressed: {
GlobalStates.sidebarRightOpen = true;
Notifications.timeoutAll();
}
}
GlobalShortcut {