Deprecate creating new Sprout addresses
This commit is contained in:
parent
2f7cfca59b
commit
35636710a1
|
@ -1182,7 +1182,16 @@ void MainWindow::setupRecieveTab() {
|
|||
});
|
||||
|
||||
// zAddr toggle button, one for sprout and one for sapling
|
||||
QObject::connect(ui->rdioZAddr, &QRadioButton::toggled, addZAddrsToComboList(false));
|
||||
QObject::connect(ui->rdioZAddr, &QRadioButton::toggled, [=](bool checked) {
|
||||
ui->btnRecieveNewAddr->setEnabled(!checked);
|
||||
if (checked) {
|
||||
ui->btnRecieveNewAddr->setToolTip(tr("Creation of new Sprout addresses is deprecated"));
|
||||
}
|
||||
else {
|
||||
ui->btnRecieveNewAddr->setToolTip("");
|
||||
}
|
||||
addZAddrsToComboList(false)(checked);
|
||||
});
|
||||
QObject::connect(ui->rdioZSAddr, &QRadioButton::toggled, addZAddrsToComboList(true));
|
||||
|
||||
// Explicitly get new address button.
|
||||
|
@ -1215,7 +1224,7 @@ void MainWindow::setupRecieveTab() {
|
|||
if (Settings::getInstance()->isSaplingActive()) {
|
||||
ui->rdioZSAddr->setVisible(true);
|
||||
ui->rdioZSAddr->setChecked(true);
|
||||
ui->rdioZAddr->setText("z-Addr(Sprout)");
|
||||
ui->rdioZAddr->setText("z-Addr(Legacy Sprout)");
|
||||
} else {
|
||||
ui->rdioZSAddr->setVisible(false);
|
||||
ui->rdioZAddr->setChecked(true);
|
||||
|
|
|
@ -629,7 +629,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="rdioZSAddr">
|
||||
<property name="text">
|
||||
<string>z-Addr(Sapling)</string>
|
||||
<string>z-Addr</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -649,7 +649,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="rdioZAddr">
|
||||
<property name="text">
|
||||
<string>z-Addr(Sprout)</string>
|
||||
<string>z-Addr(Legacy Sprout)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue