diff --git a/src/qml/AccountSwitchDialog.qml b/src/qml/AccountSwitchDialog.qml index ae7cd2c69..13a65da35 100644 --- a/src/qml/AccountSwitchDialog.qml +++ b/src/qml/AccountSwitchDialog.qml @@ -63,9 +63,6 @@ Kirigami.Dialog { pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.login', 'WelcomePage'), {}, { title: i18nc("@title:window", "Login") }); - if (switchUserButton.checked) { - switchUserButton.checked = false; - } root.close(); } Keys.onUpPressed: { diff --git a/src/qml/UserInfo.qml b/src/qml/UserInfo.qml index f84ccaa70..6d33ec7a2 100644 --- a/src/qml/UserInfo.qml +++ b/src/qml/UserInfo.qml @@ -32,7 +32,6 @@ RowLayout { onVisibleChanged: { if (!visible) { accountsPopup.close(); - switchUserButton.checked = false; } } KirigamiComponents.AvatarButton {