diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-26 17:27:50 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-26 17:27:50 +1000 |
| commit | 65eed8437afd9b8c4c8d4e704835a30cd1146fe3 (patch) | |
| tree | 4420278afb6b8c0e11d9e1e13f08236d4529c4d5 /modules/detachedcontent/Session.qml | |
| parent | [CI] chore: update flake (diff) | |
| download | caelestia-shell-65eed8437afd9b8c4c8d4e704835a30cd1146fe3.tar.gz caelestia-shell-65eed8437afd9b8c4c8d4e704835a30cd1146fe3.tar.bz2 caelestia-shell-65eed8437afd9b8c4c8d4e704835a30cd1146fe3.zip | |
dcontent: add panes
Diffstat (limited to 'modules/detachedcontent/Session.qml')
| -rw-r--r-- | modules/detachedcontent/Session.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/detachedcontent/Session.qml b/modules/detachedcontent/Session.qml index a3f2de5..f86528c 100644 --- a/modules/detachedcontent/Session.qml +++ b/modules/detachedcontent/Session.qml @@ -1,5 +1,11 @@ import QtQuick QtObject { + readonly property list<string> panes: ["network", "bluetooth"] + property string active + property int activeIndex + + onActiveChanged: activeIndex = panes.indexOf(active) + onActiveIndexChanged: active = panes[activeIndex] } |