@@ -53,6 +53,15 @@ SettingsMinting::SettingsMinting(QWidget *parent, WalletView *mainWindow, Wallet
53
53
ui->btnSendMint ->setEnabled (true );
54
54
}
55
55
56
+ // retrieved saved settings if nautomintdenom is not in use
57
+ QSettings* settings = getSettings ();
58
+ if (!gArgs .IsArgSet (" -nautomintdenom" ) && settings->contains (" nAutomintDenom" )){
59
+ int tempPref = settings->value (" nAutomintDenom" ).toInt ();
60
+ if (tempPref != nPreferredDenom && tempPref != 0 ){
61
+ nPreferredDenom = tempPref;
62
+ }
63
+ }
64
+
56
65
switch (nPreferredDenom){
57
66
case 10 :
58
67
ui->radioButton10 ->setChecked (true );
@@ -81,14 +90,24 @@ SettingsMinting::SettingsMinting(QWidget *parent, WalletView *mainWindow, Wallet
81
90
connect (ui->btnEsc ,SIGNAL (clicked ()),this , SLOT (close ()));
82
91
connect (ui->btnSendMint ,SIGNAL (clicked ()),this , SLOT (btnMint ()));
83
92
connect (ui->editAmount , SIGNAL (returnPressed ()), this , SLOT (btnMint ()));
84
- connect (ui->radioButton10 , SIGNAL (toggled (bool )), this , SLOT (onCheck10Clicked (bool )));
85
- connect (ui->radioButton100 , SIGNAL (toggled (bool )), this , SLOT (onCheck100Clicked (bool )));
86
- connect (ui->radioButton1000 , SIGNAL (toggled (bool )), this , SLOT (onCheck1000Clicked (bool )));
87
- connect (ui->radioButton100000 , SIGNAL (toggled (bool )), this , SLOT (onCheck100000Clicked (bool )));
93
+ if (gArgs .IsArgSet (" -nautomintdenom" )){
94
+ ui->labelAutomintConfig ->setVisible (true );
95
+ ui->radioButton10 ->setEnabled (0 );
96
+ ui->radioButton100 ->setEnabled (0 );
97
+ ui->radioButton1000 ->setEnabled (0 );
98
+ ui->radioButton100000 ->setEnabled (0 );
99
+ ui->checkAutomintInstant ->setEnabled (0 );
100
+ }
101
+ else {
102
+ ui->labelAutomintConfig ->setVisible (false );
103
+ connect (ui->radioButton10 , SIGNAL (toggled (bool )), this , SLOT (onCheck10Clicked (bool )));
104
+ connect (ui->radioButton100 , SIGNAL (toggled (bool )), this , SLOT (onCheck100Clicked (bool )));
105
+ connect (ui->radioButton1000 , SIGNAL (toggled (bool )), this , SLOT (onCheck1000Clicked (bool )));
106
+ connect (ui->radioButton100000 , SIGNAL (toggled (bool )), this , SLOT (onCheck100000Clicked (bool )));
107
+ connect (ui->checkAutomintInstant , SIGNAL (toggled (bool )), this , SLOT (onCheckFullMintClicked (bool )));
108
+ }
88
109
connect (ui->editAmount , SIGNAL (textChanged (const QString &)), this , SLOT (mintAmountChange (const QString &)));
89
110
90
- connect (ui->checkAutomintInstant , SIGNAL (toggled (bool )), this , SLOT (onCheckFullMintClicked (bool )));
91
-
92
111
}
93
112
94
113
/* *
0 commit comments