summaryrefslogtreecommitdiff
path: root/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml')
-rw-r--r--raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml35
1 files changed, 0 insertions, 35 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml
deleted file mode 100644
index 75b11f7..0000000
--- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Common/ModalManager.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-pragma Singleton
-pragma ComponentBehavior: Bound
-
-import Quickshell
-import QtQuick
-
-Singleton {
- id: modalManager
-
- signal closeAllModalsExcept(var excludedModal)
- signal modalChanged
-
- property var currentModalsByScreen: ({})
-
- function openModal(modal) {
- const screenName = modal.effectiveScreen?.name ?? "unknown";
- currentModalsByScreen[screenName] = modal;
- modalChanged();
- Qt.callLater(() => {
- if (!modal.allowStacking)
- closeAllModalsExcept(modal);
- if (!modal.keepPopoutsOpen)
- PopoutManager.closeAllPopouts();
- TrayMenuManager.closeAllMenus();
- });
- }
-
- function closeModal(modal) {
- const screenName = modal.effectiveScreen?.name ?? "unknown";
- if (currentModalsByScreen[screenName] === modal) {
- delete currentModalsByScreen[screenName];
- modalChanged();
- }
- }
-}