bar/systray: issue recreate on interact

This commit is contained in:
kossLAN 2025-06-08 18:52:36 -04:00
parent e81df16f49
commit f041f1d10f
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
3 changed files with 20 additions and 7 deletions

View file

@ -29,11 +29,10 @@ RowLayout {
hoverEnabled: true
anchors.fill: parent
onClicked: {
// trayText.width = sysTrayContent.width - trayIcon.width - trayContainer.spacing;
// trayText.visible = true;
// root.popup.set(this, trayMenu);
menuOpener.menu = trayField.modelData.menu;
if (root.popup.content == trayMenu) {
root.popup.toggle()
root.popup.hide();
return;
}
@ -44,7 +43,6 @@ RowLayout {
QsMenuOpener {
id: menuOpener
menu: trayField.modelData.menu
}
WrapperItem {
@ -62,6 +60,7 @@ RowLayout {
id: sysTrayContent
Layout.fillWidth: true
Layout.fillHeight: true
onInteracted: menuOpener.menu = null
}
}
}