summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Session.qml
blob: 0c3f1b44a86212d4d98d7a0cf0a835ae7e220632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Quickshell.Bluetooth
import QtQuick

QtObject {
    readonly property list<string> panes: ["network", "bluetooth", "audio"]

    property string active
    property int activeIndex

    readonly property Bt bt: Bt {}

    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
    }
}