persist visibility

This commit is contained in:
Benjamin Palko 2025-08-27 09:33:18 -04:00
parent 2d1de46031
commit 1b523c7ac4

View file

@ -4,9 +4,9 @@ import qs.widgets
import Quickshell import Quickshell
Singleton { Singleton {
property bool launcher property alias launcher: properties.launcher
property bool pomodoro property alias pomodoro: properties.pomodoro
property bool powermenu property alias powermenu: properties.powermenu
property StyledPopupWindow activePopup property StyledPopupWindow activePopup
function togglePopup(popup: StyledPopupWindow) { function togglePopup(popup: StyledPopupWindow) {
@ -16,4 +16,12 @@ Singleton {
popup.state = popup.state == "opened" ? "" : "opened"; popup.state = popup.state == "opened" ? "" : "opened";
activePopup = popup; activePopup = popup;
} }
PersistentProperties {
id: properties
property bool launcher
property bool pomodoro
property bool powermenu
}
} }