Does not work for now as QS does not provide a way to edit adapter names (will be added soon™)
20 lines
521 B
QML
20 lines
521 B
QML
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
|
|
}
|
|
}
|