mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-15 03:04:31 +10:00
24 lines
398 B
QML
24 lines
398 B
QML
pragma Singleton
|
|
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property StackView stackView
|
|
|
|
function push(component) {
|
|
if (stackView) {
|
|
stackView.push(component)
|
|
}
|
|
}
|
|
|
|
function back() {
|
|
if (stackView && stackView.depth > 1) {
|
|
stackView.pop()
|
|
}
|
|
}
|
|
}
|