From 1f50cd63352987cb66218a7e1237b1134258e6b4 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 17 Mar 2023 13:59:55 +0100 Subject: [PATCH] libwalletqt: don't refresh models or store on updated --- src/libwalletqt/Wallet.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index d539404f..db1cc65c 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -429,18 +429,11 @@ void Wallet::onNewBlock(uint64_t walletHeight) { this->syncStatusUpdated(walletHeight, daemonHeight); if (this->isSynchronized()) { - this->coins()->refreshUnlocked(); - this->history()->refresh(this->currentSubaddressAccount()); - // Todo: only refresh tx confirmations + this->refreshModels(); } } void Wallet::onUpdated() { - if (m_walletImpl->synchronized()) { - this->refreshModels(); - this->storeSafer(); - } - this->updateBalance(); } @@ -453,7 +446,6 @@ void Wallet::onRefreshed(bool success, const QString &message) { } if (!this->refreshedOnce) { - this->refreshModels(); this->refreshedOnce = true; emit walletRefreshed(); // store wallet immediately upon finishing synchronization -- 2.52.0