wbar: update anchor position when pinning tray items

This commit is contained in:
end-4
2025-11-16 22:06:30 +01:00
parent 28bf94904f
commit 71e0538cf5
2 changed files with 5 additions and 0 deletions
@@ -34,6 +34,10 @@ Loader {
item.close();
}
function updateAnchor() {
item?.anchor.updateAnchor();
}
active: false
visible: active
sourceComponent: PopupWindow {
@@ -39,6 +39,7 @@ BarPopup {
model: ScriptModel {
values: TrayService.unpinnedItems
onValuesChanged: {
root.updateAnchor();
if (values.length === 0) {
root.close();
}