Skip to content

Commit

Permalink
Make igonre button default
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Nov 24, 2023
1 parent 3db825e commit 0d38cc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,13 @@ MigrateLelantusToSparkDialog::MigrateLelantusToSparkDialog(WalletModel *_model):
void MigrateLelantusToSparkDialog::onIgnoreClicked()
{
setVisible(false);
clickedButton = false;
clickedButton = true;
}

void MigrateLelantusToSparkDialog::onMigrateClicked()
{
setVisible(false);
clickedButton = true;
clickedButton = false;
model->migrateLelantusToSpark();
}

Expand Down
4 changes: 2 additions & 2 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void SendCoinsDialog::on_sendButton_clicked()
if (model->getLelantusModel()->getPrivateBalance().first > 0 && chainActive.Height() < ::Params().GetConsensus().nLelantusGracefulPeriod) {
MigrateLelantusToSparkDialog migrateLelantusToSpark(model);
bool clickedButton = migrateLelantusToSpark.getClickedButton();
if(clickedButton) {
if(!clickedButton) {
fNewRecipientAllowed = true;
return;
}
Expand All @@ -337,7 +337,7 @@ void SendCoinsDialog::on_sendButton_clicked()
} else if ((fAnonymousMode == false) && (sparkAddressCount == 0)){
SendGoPrivateDialog goPrivateDialog;
bool clickedButton = goPrivateDialog.getClickedButton();
if(clickedButton) {
if(!clickedButton) {
setAnonymizeMode(true);
fNewRecipientAllowed = true;
return;
Expand Down

0 comments on commit 0d38cc2

Please sign in to comment.