panel: close panel when opening widget settings

This commit is contained in:
Lemmy
2026-01-27 16:51:48 -05:00
parent 96dcc8e831
commit 0727d1671f
+5
View File
@@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import qs.Commons
import qs.Services.Compositor
import qs.Services.UI
Singleton {
id: root
@@ -304,6 +305,10 @@ Singleton {
// Close any existing dialogs first to prevent stacking
closeExistingDialogs(popupMenuWindow);
if (PanelService.openedPanel) {
PanelService.openedPanel.close();
}
var component = Qt.createComponent(Quickshell.shellDir + "/Modules/Panels/Settings/Bar/BarWidgetSettingsDialog.qml");
function instantiateAndOpen() {