mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
libwalletqt: don't refresh models or store on updated
This commit is contained in:
parent
e3e25e8536
commit
1f50cd6335
1 changed files with 1 additions and 9 deletions
|
@ -429,18 +429,11 @@ void Wallet::onNewBlock(uint64_t walletHeight) {
|
||||||
this->syncStatusUpdated(walletHeight, daemonHeight);
|
this->syncStatusUpdated(walletHeight, daemonHeight);
|
||||||
|
|
||||||
if (this->isSynchronized()) {
|
if (this->isSynchronized()) {
|
||||||
this->coins()->refreshUnlocked();
|
this->refreshModels();
|
||||||
this->history()->refresh(this->currentSubaddressAccount());
|
|
||||||
// Todo: only refresh tx confirmations
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Wallet::onUpdated() {
|
void Wallet::onUpdated() {
|
||||||
if (m_walletImpl->synchronized()) {
|
|
||||||
this->refreshModels();
|
|
||||||
this->storeSafer();
|
|
||||||
}
|
|
||||||
|
|
||||||
this->updateBalance();
|
this->updateBalance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,7 +446,6 @@ void Wallet::onRefreshed(bool success, const QString &message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->refreshedOnce) {
|
if (!this->refreshedOnce) {
|
||||||
this->refreshModels();
|
|
||||||
this->refreshedOnce = true;
|
this->refreshedOnce = true;
|
||||||
emit walletRefreshed();
|
emit walletRefreshed();
|
||||||
// store wallet immediately upon finishing synchronization
|
// store wallet immediately upon finishing synchronization
|
||||||
|
|
Loading…
Reference in a new issue