diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 09b1338..cab4485 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -506,6 +506,15 @@ void MainWindow::setupSettingsModal() { // Connection tab by default settings.tabWidget->setCurrentIndex(0); + // Enable the troubleshooting options only if using embedded zcashd + if (!rpc->isEmbedded()) { + settings.chkRescan->setEnabled(false); + settings.chkRescan->setToolTip(tr("You're using an external zcashd. Please restart zcashd with -rescan")); + + settings.chkReindex->setEnabled(false); + settings.chkReindex->setToolTip(tr("You're using an external zcashd. Please restart zcashd with -reindex")); + } + if (settingsDialog.exec() == QDialog::Accepted) { // Custom fees bool customFees = settings.chkCustomFees->isChecked(); @@ -563,11 +572,7 @@ void MainWindow::setupSettingsModal() { if (showRestartInfo) { auto desc = tr("ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue"); - - if (!rpc->isEmbedded()) { - desc = desc + "\n\n" + tr("You also need to restart your zcashd."); - } - + QMessageBox::information(this, tr("Restart ZecWallet"), desc, QMessageBox::Ok); QTimer::singleShot(1, [=]() { this->close(); }); } diff --git a/src/settings.ui b/src/settings.ui index 597ce1a..38d40c1 100644 --- a/src/settings.ui +++ b/src/settings.ui @@ -284,7 +284,7 @@ - Rescan the blockchain for any missing wallet transactions and to correct your wallet balance. This will take several hours. You need to restart ZecWallet for this to take effect + Rescan the blockchain for any missing wallet transactions and to correct your wallet balance. This may take several hours. You need to restart ZecWallet for this to take effect true