18 lines
416 B
QML
18 lines
416 B
QML
pragma Singleton
|
|
|
|
import qs.widgets
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
property bool launcher
|
|
property bool powermenu
|
|
property StyledPopupWindow activePopup
|
|
|
|
function togglePopup(popup: StyledPopupWindow) {
|
|
if (activePopup && popup != activePopup) {
|
|
activePopup.state = "";
|
|
}
|
|
popup.state = popup.state == "opened" ? "" : "opened";
|
|
activePopup = popup;
|
|
}
|
|
}
|