WallpaperSelector: set current tab index to the current screen the UI opened on.

This commit is contained in:
LemmyCook
2025-09-19 11:18:55 -04:00
parent 06b858a77e
commit fcc054c3ae
@@ -23,7 +23,16 @@ NPanel {
panelContent: Rectangle {
id: wallpaperPanel
property int currentScreenIndex: 0
property int currentScreenIndex: {
if (screen !== null) {
for (var i = 0; i < Quickshell.screens.length; i++) {
if (Quickshell.screens[i].name == screen.name) {
return i
}
}
}
return 0
}
property var currentScreen: Quickshell.screens[currentScreenIndex]
property string filterText: ""