Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 18s
Python / test (pull_request) Successful in 46s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m39s
C++ / build (pull_request) Successful in 2m26s
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;
|
|
}
|
|
}
|