bar/popops: fix menu window anims and positioning

This commit is contained in:
kossLAN 2025-06-07 16:33:14 -04:00
parent d71aafd91b
commit 95cc1b4c44
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
3 changed files with 107 additions and 97 deletions

View file

@ -31,7 +31,14 @@ RowLayout {
onClicked: {
// trayText.width = sysTrayContent.width - trayIcon.width - trayContainer.spacing;
// trayText.visible = true;
// root.popup.set(this, trayMenu);
if (root.popup.content == trayMenu) {
root.popup.toggle()
return;
}
root.popup.set(this, trayMenu);
root.popup.show();
}
}