From 37251afe60da31780cc2b09e11016dfafb2b2c78 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 12 Dec 2024 22:37:07 +0100 Subject: [PATCH] fix(wallet): bring back chat settings panel that was missing --- .../main/profile_section/ens_usernames/view.nim | 4 ---- ui/app/AppLayouts/Profile/views/EnsListView.qml | 10 +--------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/modules/main/profile_section/ens_usernames/view.nim b/src/app/modules/main/profile_section/ens_usernames/view.nim index cd315b5435..e5d9b93cfb 100644 --- a/src/app/modules/main/profile_section/ens_usernames/view.nim +++ b/src/app/modules/main/profile_section/ens_usernames/view.nim @@ -74,10 +74,6 @@ QtObject: proc getEtherscanAddressLink*(self: View): string {.slot.} = return self.etherscanAddressLink - proc usernameConfirmed(self: View, username: string) {.signal.} - proc emitUsernameConfirmedSignal*(self: View, ensUsername: string) = - self.usernameConfirmed(ensUsername) - proc transactionCompleted(self: View, success: bool, txHash: string, username: string, trxType: string) {.signal.} proc emitTransactionCompletedSignal*(self: View, success: bool, txHash: string, username: string, trxType: string) = self.transactionCompleted(success, txHash, username, trxType) diff --git a/ui/app/AppLayouts/Profile/views/EnsListView.qml b/ui/app/AppLayouts/Profile/views/EnsListView.qml index 3bbc0df6fa..70d3d65166 100644 --- a/ui/app/AppLayouts/Profile/views/EnsListView.qml +++ b/ui/app/AppLayouts/Profile/views/EnsListView.qml @@ -36,21 +36,13 @@ Item { property int numOfPendingEnsUsernames: 0 readonly property bool hasConfirmedEnsUsernames: root.ensUsernamesStore.ensUsernamesModel.count > 0 - && numOfPendingEnsUsernames !== root.ensUsernamesStore.ensUsernamesModel.count + || numOfPendingEnsUsernames > 0 function updateNumberOfPendingEnsUsernames() { numOfPendingEnsUsernames = root.ensUsernamesStore.numOfPendingEnsUsernames() } } - Connections { - target: root.ensUsernamesStore.ensUsernamesModule - function onUsernameConfirmed(username: string) { - d.updateNumberOfPendingEnsUsernames() - chatSettingsLabel.visible = true - } - } - Item { anchors.top: parent.top width: profileContentWidth