From 038a3bb5c8ae4b6c83c3f9b957fed5befb101e5f Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 14 Dec 2024 17:23:51 +0100 Subject: [PATCH] Drop dead code for switchUserButton It is never checked --- src/qml/AccountSwitchDialog.qml | 3 --- src/qml/UserInfo.qml | 1 - 2 files changed, 4 deletions(-) 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 {