mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add close logic for WallpaperSelector
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user