mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-18 10:11:02 +00:00
Menu: add rescan spent
This commit is contained in:
parent
ea81b308f7
commit
66f53d865e
3 changed files with 19 additions and 3 deletions
|
@ -433,15 +433,16 @@ void MainWindow::initMenu() {
|
||||||
connect(ui->actionPassword, &QAction::triggered, this, &MainWindow::showPasswordDialog);
|
connect(ui->actionPassword, &QAction::triggered, this, &MainWindow::showPasswordDialog);
|
||||||
connect(ui->actionKeys, &QAction::triggered, this, &MainWindow::showKeysDialog);
|
connect(ui->actionKeys, &QAction::triggered, this, &MainWindow::showKeysDialog);
|
||||||
connect(ui->actionViewOnly, &QAction::triggered, this, &MainWindow::showViewOnlyDialog);
|
connect(ui->actionViewOnly, &QAction::triggered, this, &MainWindow::showViewOnlyDialog);
|
||||||
connect(ui->actionStore_wallet, &QAction::triggered, [&]{
|
connect(ui->actionStore_wallet, &QAction::triggered, [this]{
|
||||||
m_ctx->currentWallet->store();
|
m_ctx->currentWallet->store();
|
||||||
});
|
});
|
||||||
connect(ui->actionRefresh_tabs, &QAction::triggered, [&]{
|
connect(ui->actionRefresh_tabs, &QAction::triggered, [this]{
|
||||||
m_ctx->refreshModels();
|
m_ctx->refreshModels();
|
||||||
});
|
});
|
||||||
connect(ui->actionUpdate_balance, &QAction::triggered, [&]{
|
connect(ui->actionUpdate_balance, &QAction::triggered, [this]{
|
||||||
m_ctx->updateBalance();
|
m_ctx->updateBalance();
|
||||||
});
|
});
|
||||||
|
connect(ui->actionRescan_spent, &QAction::triggered, this, &MainWindow::rescanSpent);
|
||||||
connect(ui->actionExportKeyImages, &QAction::triggered, this, &MainWindow::exportKeyImages);
|
connect(ui->actionExportKeyImages, &QAction::triggered, this, &MainWindow::exportKeyImages);
|
||||||
connect(ui->actionImportKeyImages, &QAction::triggered, this, &MainWindow::importKeyImages);
|
connect(ui->actionImportKeyImages, &QAction::triggered, this, &MainWindow::importKeyImages);
|
||||||
connect(ui->actionExportOutputs, &QAction::triggered, this, &MainWindow::exportOutputs);
|
connect(ui->actionExportOutputs, &QAction::triggered, this, &MainWindow::exportOutputs);
|
||||||
|
@ -1302,6 +1303,14 @@ void MainWindow::updateNetStats() {
|
||||||
m_statusLabelNetStats->setText(QString("(D: %1)").arg(Utils::formatBytes(m_ctx->currentWallet->getBytesReceived())));
|
m_statusLabelNetStats->setText(QString("(D: %1)").arg(Utils::formatBytes(m_ctx->currentWallet->getBytesReceived())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::rescanSpent() {
|
||||||
|
if (!m_ctx->currentWallet->rescanSpent()) {
|
||||||
|
QMessageBox::warning(this, "Rescan spent", m_ctx->currentWallet->errorString());
|
||||||
|
} else {
|
||||||
|
QMessageBox::information(this, "Rescan spent", "Successfully rescanned spent outputs.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow() {
|
MainWindow::~MainWindow() {
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,6 +167,7 @@ private:
|
||||||
void touchbarShowWallet();
|
void touchbarShowWallet();
|
||||||
void updatePasswordIcon();
|
void updatePasswordIcon();
|
||||||
void updateNetStats();
|
void updateNetStats();
|
||||||
|
void rescanSpent();
|
||||||
|
|
||||||
WalletWizard *createWizard(WalletWizard::Page startPage);
|
WalletWizard *createWizard(WalletWizard::Page startPage);
|
||||||
|
|
||||||
|
|
|
@ -429,6 +429,7 @@
|
||||||
<addaction name="actionStore_wallet"/>
|
<addaction name="actionStore_wallet"/>
|
||||||
<addaction name="actionUpdate_balance"/>
|
<addaction name="actionUpdate_balance"/>
|
||||||
<addaction name="actionRefresh_tabs"/>
|
<addaction name="actionRefresh_tabs"/>
|
||||||
|
<addaction name="actionRescan_spent"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionChange_restore_height"/>
|
<addaction name="actionChange_restore_height"/>
|
||||||
<addaction name="menuExport"/>
|
<addaction name="menuExport"/>
|
||||||
|
@ -734,6 +735,11 @@
|
||||||
<string>Show Exchange</string>
|
<string>Show Exchange</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionRescan_spent">
|
||||||
|
<property name="text">
|
||||||
|
<string>Rescan spent</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
|
Loading…
Reference in a new issue