15 lines
313 B
QML
15 lines
313 B
QML
pragma Singleton
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
id: root
|
|
property string current: ""
|
|
property ShellScreen screen: null
|
|
function toggle(name, scr) {
|
|
current = (current === name && screen === scr) ? "" : name;
|
|
screen = scr;
|
|
}
|
|
function close() {
|
|
current = "";
|
|
}
|
|
}
|