#107 - Troubleshooting only for embedded zcashd
This commit is contained in:
@@ -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(); });
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>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</string>
|
||||
<string>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</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
||||
Reference in New Issue
Block a user