Add close logic for WallpaperSelector

This commit is contained in:
Ly-sec 2025-08-07 21:21:03 +02:00
parent 7844cc2975
commit 8a6b842ed0
2 changed files with 27 additions and 3 deletions

View file

@ -294,7 +294,14 @@ PanelWithOverlay {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: panelMain.dismiss()
onClicked: {
// If wallpaper selector is open, close it instead of the settings window
if (wallpaperSelector.visible) {
wallpaperSelector.hide();
} else {
panelMain.dismiss();
}
}
}
}