message: Update default mode of send dialog to transparent if there are no anonymous balance
diff: #include "base58.h"
  #include "chainparams.h"
  +#include "lelantus.h"
  #include "wallet/coincontrol.h"
  #include "validation.h" // mempool and minRelayTxFee
  #include "ui_interface.h"
  @@ -136,6 +137,19 @@ void SendCoinsDialog::setModel(WalletModel *_model)
  }
  }
  + {
  + // switch to transparent mode if there are transparent balance and have no anoymous balance.
  + auto haveTransparentBalance = _model->getBalance() > 0 || _model->getUnconfirmedBalance() > 0;
  +
  + // if lelantus is allowed we can spend sigma in this too.
  + auto includeSigma = lelantus::IsLelantusAllowed();
  + auto havePrivateBalance = _model->getPrivateBalance(includeSigma) > 0 || _model->getUnconfirmedPrivateBalance(includeSigma) > 0;
  +
  + if (haveTransparentBalance && !havePrivateBalance) {
  + setAnonymizeMode(false);
  + }
  + }
  +
  setBalance(
  _model->getBalance(), _model->getUnconfirmedBalance(), _model->getImmatureBalance(),
  _model->getWatchBalance(), _model->getWatchUnconfirmedBalance(), _model->getWatchImmatureBalance(),
  