persist visibility
This commit is contained in:
parent
2d1de46031
commit
1b523c7ac4
1 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue