Fix WallpaperSelector close function
This commit is contained in:
parent
cba9f10a24
commit
cec4b05047
1 changed files with 4 additions and 0 deletions
|
|
@ -473,6 +473,10 @@ PanelWithOverlay {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
// Close WallpaperSelector if it's open
|
||||||
|
if (wallpaperSelector.visible) {
|
||||||
|
wallpaperSelector.hide();
|
||||||
|
}
|
||||||
activeTabIndex = index;
|
activeTabIndex = index;
|
||||||
loadComponentForTab(index);
|
loadComponentForTab(index);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue