21 lines
300 B
QML
21 lines
300 B
QML
pragma Singleton
|
|
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property bool closed: true
|
|
property Component currentPopup: null
|
|
|
|
function requestClose(): void {
|
|
closed = true;
|
|
}
|
|
|
|
function requestOpen(component: Component): void {
|
|
currentPopup = component;
|
|
closed = false;
|
|
}
|
|
}
|