Add close logic for WallpaperSelector
This commit is contained in:
parent
7844cc2975
commit
8a6b842ed0
2 changed files with 27 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue