From 67b7245bf96cf954d90719e800cf9618ffaa4feb Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Mon, 29 Jun 2026 21:08:42 +0200 Subject: chore: cleanup sway, quickshell --- modules/system/quickshell/GlobalState.qml | 32 ------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 modules/system/quickshell/GlobalState.qml (limited to 'modules/system/quickshell/GlobalState.qml') 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 = []; - } -} -- cgit v1.3.1