diff options
Diffstat (limited to 'modules/controlcenter/Session.qml')
| -rw-r--r-- | modules/controlcenter/Session.qml | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/modules/controlcenter/Session.qml b/modules/controlcenter/Session.qml index 6f560f5..5d7b094 100644 --- a/modules/controlcenter/Session.qml +++ b/modules/controlcenter/Session.qml @@ -1,5 +1,5 @@ -import Quickshell.Bluetooth import QtQuick +import "./state" QtObject { readonly property list<string> panes: ["network", "bluetooth", "audio", "appearance", "taskbar", "launcher"] @@ -10,33 +10,12 @@ QtObject { property int activeIndex: 0 property bool navExpanded: false - readonly property Bt bt: Bt {} - readonly property Network network: Network {} - readonly property Ethernet ethernet: Ethernet {} - readonly property Launcher launcher: Launcher {} + // Pane-specific state objects + readonly property BluetoothState bt: BluetoothState {} + readonly property NetworkState network: NetworkState {} + readonly property EthernetState ethernet: EthernetState {} + readonly property LauncherState launcher: LauncherState {} onActiveChanged: activeIndex = panes.indexOf(active) onActiveIndexChanged: active = panes[activeIndex] - - component Bt: QtObject { - property BluetoothDevice active - property BluetoothAdapter currentAdapter: Bluetooth.defaultAdapter - property bool editingAdapterName - property bool fabMenuOpen - property bool editingDeviceName - } - - component Network: QtObject { - property var active - property bool showPasswordDialog: false - property var pendingNetwork - } - - component Ethernet: QtObject { - property var active - } - - component Launcher: QtObject { - property var active - } } |