]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
libwalletqt: don't refresh models or store on updated
authortobtoht <tob@featherwallet.org>
Fri, 17 Mar 2023 12:59:55 +0000 (13:59 +0100)
committertobtoht <tob@featherwallet.org>
Fri, 17 Mar 2023 13:00:10 +0000 (14:00 +0100)
src/libwalletqt/Wallet.cpp

index d539404f87b70b9d3161fc08ac19a5b5b29acd0b..db1cc65c04593daaab87ea018e5de460ccd6f515 100644 (file)
@@ -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