Deprecate creating new Sprout addresses
This commit is contained in:
@@ -1182,7 +1182,16 @@ void MainWindow::setupRecieveTab() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// zAddr toggle button, one for sprout and one for sapling
|
// 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));
|
QObject::connect(ui->rdioZSAddr, &QRadioButton::toggled, addZAddrsToComboList(true));
|
||||||
|
|
||||||
// Explicitly get new address button.
|
// Explicitly get new address button.
|
||||||
@@ -1215,7 +1224,7 @@ void MainWindow::setupRecieveTab() {
|
|||||||
if (Settings::getInstance()->isSaplingActive()) {
|
if (Settings::getInstance()->isSaplingActive()) {
|
||||||
ui->rdioZSAddr->setVisible(true);
|
ui->rdioZSAddr->setVisible(true);
|
||||||
ui->rdioZSAddr->setChecked(true);
|
ui->rdioZSAddr->setChecked(true);
|
||||||
ui->rdioZAddr->setText("z-Addr(Sprout)");
|
ui->rdioZAddr->setText("z-Addr(Legacy Sprout)");
|
||||||
} else {
|
} else {
|
||||||
ui->rdioZSAddr->setVisible(false);
|
ui->rdioZSAddr->setVisible(false);
|
||||||
ui->rdioZAddr->setChecked(true);
|
ui->rdioZAddr->setChecked(true);
|
||||||
|
|||||||
@@ -629,7 +629,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="rdioZSAddr">
|
<widget class="QRadioButton" name="rdioZSAddr">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>z-Addr(Sapling)</string>
|
<string>z-Addr</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -649,7 +649,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="rdioZAddr">
|
<widget class="QRadioButton" name="rdioZAddr">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>z-Addr(Sprout)</string>
|
<string>z-Addr(Legacy Sprout)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user