mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
libwalletqt: don't refresh models or store on updated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user