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
|
||||
|
||||
Singleton {
|
||||
property bool launcher
|
||||
property bool pomodoro
|
||||
property bool powermenu
|
||||
property alias launcher: properties.launcher
|
||||
property alias pomodoro: properties.pomodoro
|
||||
property alias powermenu: properties.powermenu
|
||||
property StyledPopupWindow activePopup
|
||||
|
||||
function togglePopup(popup: StyledPopupWindow) {
|
||||
|
|
@ -16,4 +16,12 @@ Singleton {
|
|||
popup.state = popup.state == "opened" ? "" : "opened";
|
||||
activePopup = popup;
|
||||
}
|
||||
|
||||
PersistentProperties {
|
||||
id: properties
|
||||
|
||||
property bool launcher
|
||||
property bool pomodoro
|
||||
property bool powermenu
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue