Accounts Popup Close on Hide
Make sure that the accounts popup is closed when the UserInfo component is hidden
This commit is contained in:
committed by
Joshua Goins
parent
576b1f928f
commit
3aff1795c8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user