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

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

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