Accounts Popup Close on Hide

Make sure that the accounts popup is closed when the UserInfo component is hidden
This commit is contained in:
James Graham
2023-11-05 19:57:15 +00:00
committed by Joshua Goins
parent 576b1f928f
commit 3aff1795c8

View File

@@ -27,6 +27,13 @@ RowLayout {
Layout.bottomMargin: Kirigami.Units.smallSpacing
Layout.minimumHeight: bottomEdge ? Kirigami.Units.gridUnit * 2 - 2 : -1 // HACK: -2 here is to ensure the ChatBox and the UserInfo have the same height
onVisibleChanged: {
if (!visible) {
accountsPopup.close();
switchUserButton.checked = false;
}
}
QQC2.AbstractButton {
id: accountButton