File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -791,16 +791,17 @@ void PrivacyDialog::updateAutomintStatus()
791
791
void PrivacyDialog::updateSPORK16Status ()
792
792
{
793
793
// Update/enable labels, buttons and tooltips depending on the current SPORK_16 status
794
- if (GetAdjustedTime () > GetSporkValue (SPORK_16_ZEROCOIN_MAINTENANCE_MODE)) {
794
+ bool fButtonsEnabled = ui->pushButtonMintzPIV ->isEnabled ();
795
+ bool fMaintenanceMode = GetAdjustedTime () > GetSporkValue (SPORK_16_ZEROCOIN_MAINTENANCE_MODE);
796
+ if (fMaintenanceMode && fButtonsEnabled ) {
795
797
// Mint zPIV
796
798
ui->pushButtonMintzPIV ->setEnabled (false );
797
799
ui->pushButtonMintzPIV ->setToolTip (tr (" zPIV is currently disabled due to maintenance." ));
798
800
799
801
// Spend zPIV
800
802
ui->pushButtonSpendzPIV ->setEnabled (false );
801
803
ui->pushButtonSpendzPIV ->setToolTip (tr (" zPIV is currently disabled due to maintenance." ));
802
- }
803
- else {
804
+ } else if (!fMaintenanceMode && !fButtonsEnabled ) {
804
805
// Mint zPIV
805
806
ui->pushButtonMintzPIV ->setEnabled (true );
806
807
ui->pushButtonMintzPIV ->setToolTip (tr (" PrivacyDialog" , " Enter an amount of PIV to convert to zPIV" , 0 ));
You can’t perform that action at this time.
0 commit comments