Dismiss SidePanel when opening settings / recording screen or select a wallpaper
This commit is contained in:
parent
2a897060a7
commit
dc77bc667a
2 changed files with 6 additions and 1 deletions
|
|
@ -301,8 +301,10 @@ PanelWithOverlay {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (sidebarPopupRect.isRecording) {
|
if (sidebarPopupRect.isRecording) {
|
||||||
sidebarPopupRect.stopRecording();
|
sidebarPopupRect.stopRecording();
|
||||||
|
sidebarPopup.dismiss();
|
||||||
} else {
|
} else {
|
||||||
sidebarPopupRect.startRecording();
|
sidebarPopupRect.startRecording();
|
||||||
|
sidebarPopup.dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -343,8 +345,10 @@ PanelWithOverlay {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (typeof settingsModal !== 'undefined' && settingsModal && settingsModal.openSettings)
|
if (typeof settingsModal !== 'undefined' && settingsModal && settingsModal.openSettings) {
|
||||||
settingsModal.openSettings(6);
|
settingsModal.openSettings(6);
|
||||||
|
sidebarPopup.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
sidebarPopup.dismiss();
|
||||||
} else if (settingsWindow.visible) {
|
} else if (settingsWindow.visible) {
|
||||||
// Close and destroy window
|
// Close and destroy window
|
||||||
var windowToDestroy = settingsWindow;
|
var windowToDestroy = settingsWindow;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue