controlcenter: corrected index of panes

This commit is contained in:
ATMDA 2025-11-14 13:44:15 -05:00
parent 28ebba0c1b
commit ebc2772b3e
2 changed files with 7 additions and 22 deletions

View file

@ -1,6 +1,5 @@
pragma ComponentBehavior: Bound
import "ethernet"
import "bluetooth"
import "network"
import "audio"
@ -29,60 +28,46 @@ ClippingRectangle {
Pane {
index: 0
sourceComponent: EthernetPane {
sourceComponent: NetworkingPane {
session: root.session
}
}
Pane {
index: 1
sourceComponent: WirelessPane {
session: root.session
}
}
Pane {
index: 2
sourceComponent: BtPane {
session: root.session
}
}
Pane {
index: 3
index: 2
sourceComponent: AudioPane {
session: root.session
}
}
Pane {
index: 4
index: 3
sourceComponent: AppearancePane {
session: root.session
}
}
Pane {
index: 5
index: 4
sourceComponent: TaskbarPane {
session: root.session
}
}
Pane {
index: 6
index: 5
sourceComponent: LauncherPane {
session: root.session
}
}
Pane {
index: 7
sourceComponent: NetworkingPane {
session: root.session
}
}
Behavior on y {
Anim {}
}

View file

@ -2,12 +2,12 @@ import Quickshell.Bluetooth
import QtQuick
QtObject {
readonly property list<string> panes: ["ethernet", "wireless", "bluetooth", "audio", "appearance", "taskbar", "launcher", "networking"]
readonly property list<string> panes: ["networking", "bluetooth", "audio", "appearance", "taskbar", "launcher"]
required property var root
property bool floating: false
property string active: "networking"
property int activeIndex: 7
property int activeIndex: 0
property bool navExpanded: false
readonly property Bt bt: Bt {}