diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-06-29 21:08:42 +0200 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-06-29 21:22:33 +0200 |
| commit | 67b7245bf96cf954d90719e800cf9618ffaa4feb (patch) | |
| tree | 2723c3db278840150985cdc630487ff175d330d9 /modules/system/quickshell/GlobalState.qml | |
| parent | d4fa3d0533c8dac688e38413403815de1802339e (diff) | |
chore: cleanup sway, quickshell
Diffstat (limited to 'modules/system/quickshell/GlobalState.qml')
| -rw-r--r-- | modules/system/quickshell/GlobalState.qml | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/modules/system/quickshell/GlobalState.qml b/modules/system/quickshell/GlobalState.qml deleted file mode 100644 index c657b31..0000000 --- a/modules/system/quickshell/GlobalState.qml +++ /dev/null @@ -1,32 +0,0 @@ -pragma Singleton -import QtQuick - -QtObject { - property string activePopup: "" - property var notificationHistory: [] - - function open(name) { - activePopup = ""; - activePopup = name; - } - - function close() { - activePopup = ""; - } - - function toggle(name) { - if (activePopup === name) - activePopup = ""; - else - activePopup = name; - } - - function addNotification(data) { - const entry = Object.assign({}, data); - notificationHistory = [entry].concat(notificationHistory).slice(0, 50); - } - - function clearNotificationHistory() { - notificationHistory = []; - } -} |
