mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-18 07:41:31 +02:00
Coins: output labeling
This commit is contained in:
@@ -447,6 +447,16 @@ void MainWindow::onWalletOpened() {
|
||||
// coins page
|
||||
m_ctx->wallet->coins()->refresh(m_ctx->wallet->currentSubaddressAccount());
|
||||
m_coinsWidget->setModel(m_ctx->wallet->coinsModel(), m_ctx->wallet->coins());
|
||||
m_ctx->wallet->coinsModel()->setCurrentSubaddressAccount(m_ctx->wallet->currentSubaddressAccount());
|
||||
|
||||
// Coin labeling uses set_tx_note, so we need to refresh history too
|
||||
connect(m_ctx->wallet->coins(), &Coins::descriptionChanged, [this] {
|
||||
m_ctx->wallet->history()->refresh(m_ctx->wallet->currentSubaddressAccount());
|
||||
});
|
||||
// Vice versa
|
||||
connect(m_ctx->wallet->history(), &TransactionHistory::txNoteChanged, [this] {
|
||||
m_ctx->wallet->coins()->refresh(m_ctx->wallet->currentSubaddressAccount());
|
||||
});
|
||||
|
||||
this->updatePasswordIcon();
|
||||
this->updateTitle();
|
||||
|
||||
Reference in New Issue
Block a user