From dc77bc667a65d670303c048a2af7609c58556b6b Mon Sep 17 00:00:00 2001 From: quadbyte Date: Thu, 7 Aug 2025 12:58:18 -0400 Subject: [PATCH] Dismiss SidePanel when opening settings / recording screen or select a wallpaper --- Widgets/SidePanel/PanelPopup.qml | 6 +++++- Widgets/SidePanel/SettingsIcon.qml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Widgets/SidePanel/PanelPopup.qml b/Widgets/SidePanel/PanelPopup.qml index d62d31b..1a69956 100644 --- a/Widgets/SidePanel/PanelPopup.qml +++ b/Widgets/SidePanel/PanelPopup.qml @@ -301,8 +301,10 @@ PanelWithOverlay { onClicked: { if (sidebarPopupRect.isRecording) { sidebarPopupRect.stopRecording(); + sidebarPopup.dismiss(); } else { sidebarPopupRect.startRecording(); + sidebarPopup.dismiss(); } } } @@ -343,8 +345,10 @@ PanelWithOverlay { hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: { - if (typeof settingsModal !== 'undefined' && settingsModal && settingsModal.openSettings) + if (typeof settingsModal !== 'undefined' && settingsModal && settingsModal.openSettings) { settingsModal.openSettings(6); + sidebarPopup.dismiss(); + } } } diff --git a/Widgets/SidePanel/SettingsIcon.qml b/Widgets/SidePanel/SettingsIcon.qml index 866db59..dc12ac2 100644 --- a/Widgets/SidePanel/SettingsIcon.qml +++ b/Widgets/SidePanel/SettingsIcon.qml @@ -57,6 +57,7 @@ PanelWindow { } }); } + sidebarPopup.dismiss(); } else if (settingsWindow.visible) { // Close and destroy window var windowToDestroy = settingsWindow;