forked from Shinonome/dots-hyprland
wbar: update anchor position when pinning tray items
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user