Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Modules/Bar/Extras/TrayMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,16 @@ PopupWindow {
} else {
// Click on regular items triggers them
modelData.triggered();
root.hideMenu();

// Close the drawer if it's open
if (root.screen) {
const panel = PanelService.getPanel("trayDrawerPanel", root.screen);
if (panel && panel.visible) {
panel.close();
}
}
const screen = root.screen;
Qt.callLater(() => {
PanelService.closeTrayMenu(screen);
if (screen) {
const panel = PanelService.getPanel("trayDrawerPanel", screen);
if (panel && panel.visible) {
panel.close();
}
}
});
}
}
}
Expand Down Expand Up @@ -541,6 +542,7 @@ PopupWindow {
} else {
root.addToPinned();
}
PanelService.closeTrayMenu(root.screen);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Services/UI/PanelService.qml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ Singleton {
// Close any previously opened menu first
closeContextMenu(screen);

// Force refresh when reopening the same tray item.
trayMenu.trayItem = null;
trayMenu.trayItem = trayItem;
trayMenu.widgetSection = widgetSection;
trayMenu.widgetIndex = widgetIndex;
Expand Down