Use old migration if one is present
This commit is contained in:
@@ -381,11 +381,13 @@ void MainWindow::turnstileDoMigration(QString fromAddr) {
|
|||||||
void MainWindow::setupTurnstileDialog() {
|
void MainWindow::setupTurnstileDialog() {
|
||||||
// Turnstile migration
|
// Turnstile migration
|
||||||
QObject::connect(ui->actionTurnstile_Migration, &QAction::triggered, [=] () {
|
QObject::connect(ui->actionTurnstile_Migration, &QAction::triggered, [=] () {
|
||||||
// If the underlying zcashd has support for the migration, use that.
|
// If the underlying zcashd has support for the migration and there is no existing migration
|
||||||
// Else, show the ZecWallet turnstile tool
|
// in progress, use that.
|
||||||
if (rpc->getMigrationStatus()->available) {
|
if (rpc->getMigrationStatus()->available && !rpc->getTurnstile()->isMigrationPresent()) {
|
||||||
Turnstile::showZcashdMigration(this);
|
Turnstile::showZcashdMigration(this);
|
||||||
} else {
|
} else {
|
||||||
|
// Else, show the ZecWallet turnstile tool
|
||||||
|
|
||||||
// If there is current migration that is present, show the progress button
|
// If there is current migration that is present, show the progress button
|
||||||
if (rpc->getTurnstile()->isMigrationPresent())
|
if (rpc->getTurnstile()->isMigrationPresent())
|
||||||
turnstileProgress();
|
turnstileProgress();
|
||||||
|
|||||||
Reference in New Issue
Block a user