subaddress: cleanup

This commit is contained in:
tobtoht
2025-03-27 09:17:38 +01:00
parent 45f3d89dd3
commit ce2f332114
10 changed files with 85 additions and 73 deletions
+5 -2
View File
@@ -43,8 +43,11 @@ AccountSwitcherDialog::AccountSwitcherDialog(Wallet *wallet, QWidget *parent)
connect(ui->accounts, &QTreeView::customContextMenuRequested, this, &AccountSwitcherDialog::showContextMenu);
connect(ui->btn_newAccount, &QPushButton::clicked, [this]{
m_wallet->addSubaddressAccount("New account");
m_wallet->subaddressAccount()->refresh();
m_wallet->addSubaddressAccount("New account");
m_wallet->subaddressAccount()->refresh();
for (int i = 0; i < 10; i ++) {
m_wallet->subaddress()->addRow("");
}
});
connect(m_wallet->subaddressAccount(), &SubaddressAccount::refreshFinished, this, &AccountSwitcherDialog::updateSelection);