Skip to content

Commit

Permalink
Changes for optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Apr 5, 2024
1 parent 98dacc3 commit 7ca765c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qt/optionsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class OptionsModel : public QAbstractListModel
bool getRapAddresses() { return fenableRapAddresses; }
const QString& getOverriddenByCommandLine() { return strOverriddenByCommandLine; }
bool getAutoAnonymize() { return fAutoAnonymize; }
bool getGoPrivateWindow() {return fDisableGoToPrivate;}
bool getDisableGoToPrivate() {return fDisableGoToPrivate;}
bool getLelantusPage() {return fLelantusPage; }

/* Restart flag helper */
Expand Down
3 changes: 2 additions & 1 deletion src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ void SendCoinsDialog::on_sendButton_clicked()
return;
}
} else if ((fAnonymousMode == false) && (sparkAddressCount == 0)) {
if (!model->getOptionsModel()->getGoPrivateWindow() && spark::IsSparkAllowed()) {
if (!model->getOptionsModel()->getDisableGoToPrivate() && spark::IsSparkAllowed()) {
bool openPageTag = true;
for(int i = 0; i < recipients.size(); ++i){
std::string address = recipients[i].address.toStdString();
Expand All @@ -349,6 +349,7 @@ void SendCoinsDialog::on_sendButton_clicked()

if (boost::get<CExchangeKeyID>(&dest)) {
openPageTag = false;
break;
}
}

Expand Down

0 comments on commit 7ca765c

Please sign in to comment.