From 14fe71b5568c927375315d3f48ef6f0cc9649186 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 13 Aug 2025 19:37:21 +0200 Subject: [PATCH] Fix most warnings in AccountSwitchDialog --- src/app/qml/AccountSwitchDialog.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/qml/AccountSwitchDialog.qml b/src/app/qml/AccountSwitchDialog.qml index 6e71d7ee5..855b156e3 100644 --- a/src/app/qml/AccountSwitchDialog.qml +++ b/src/app/qml/AccountSwitchDialog.qml @@ -1,6 +1,8 @@ // SPDX-FileCopyrightText: 2024 James Graham // SPDX-License-Identifier: GPL-2.0-or-later +pragma ComponentBehavior: Bound + import QtQuick import QtQuick.Controls as QQC2 import QtQuick.Layouts @@ -53,7 +55,7 @@ Kirigami.Dialog { text: i18nc("@button: login to or register a new account.", "Add Account") contentItem: Delegates.SubtitleContentItem { itemDelegate: addDelegate - subtitle: i18n("Log in or create a new account") + subtitle: i18nc("@info", "Log in or create a new account") labelItem.textFormat: Text.PlainText subtitleItem.textFormat: Text.PlainText } @@ -93,8 +95,8 @@ Kirigami.Dialog { accountView.decrementCurrentIndex(); } } - Keys.onEnterPressed: accountView.currentItem.clicked() - Keys.onReturnPressed: accountView.currentItem.clicked() + Keys.onEnterPressed: (accountView.currentItem as Delegates.RoundedItemDelegate).clicked() + Keys.onReturnPressed: (accountView.currentItem as Delegates.RoundedItemDelegate).clicked() onVisibleChanged: { for (let i = 0; i < accountView.count; i++) {