Account switcher

This commit is contained in:
tobtoht
2021-05-22 15:42:46 +02:00
parent 21d29fa7ee
commit 50a77307f4
19 changed files with 421 additions and 44 deletions
+7
View File
@@ -41,6 +41,9 @@ AppContext::AppContext(Wallet *wallet)
connect(this->wallet.get(), &Wallet::connectionStatusChanged, [this]{
this->nodes->autoConnect();
});
connect(this->wallet.get(), &Wallet::currentSubaddressAccountChanged, [this]{
this->updateBalance();
});
connect(this, &AppContext::createTransactionError, this, &AppContext::onCreateTransactionError);
@@ -54,6 +57,10 @@ AppContext::AppContext(Wallet *wallet)
// force trigger preferredFiat signal for history model
this->onPreferredFiatCurrencyChanged(config()->get(Config::preferredFiatCurrency).toString());
connect(this->wallet->history(), &TransactionHistory::txNoteChanged, [this]{
this->wallet->history()->refresh(this->wallet->currentSubaddressAccount());
});
}
// ################## Transaction creation ##################