diff options
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 = []; - } -} |
