From a5e5e36083fc6e56fb9043596bd3a3618201e91b Mon Sep 17 00:00:00 2001 From: nephros Date: Wed, 15 Dec 2021 12:17:05 +0100 Subject: [PATCH] Use Remorse.popupAction instead of RemorseItem RemorseItem sets anchors which we can't have in a Column --- qml/components/settingsPage/SettingsUserProfile.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/qml/components/settingsPage/SettingsUserProfile.qml b/qml/components/settingsPage/SettingsUserProfile.qml index cfc0066..5191256 100644 --- a/qml/components/settingsPage/SettingsUserProfile.qml +++ b/qml/components/settingsPage/SettingsUserProfile.qml @@ -321,18 +321,14 @@ AccordionItem { height: userInformationLoader.height anchors.verticalCenter: parent.verticalCenter enabled: userInformationLoader.status == Loader.Ready - function showRemorseItem() { - remorse.execute(logOutItem, qsTr("Logged out"), function() { - tdLibWrapper.logout(); - pageStack.pop(); - }); - } - RemorseItem { id: remorse } Button { id: logOutButton text: qsTr("Log Out") anchors.centerIn: parent - onClicked: logOutItem.showRemorseItem() + onClicked: Remorse.popupAction(settingsPage, qsTr("Logged out"), function() { + tdLibWrapper.logout(); + pageStack.pop(); + }); } } }