Merge pull request #514 from UdjinM6/v0.12.0.x_fix_overview_upd
V0.12.0.x fix overview page updates on options change and on DS toggle
This commit is contained in:
commit
5e9fbabd90
@ -332,7 +332,7 @@ public:
|
||||
to behave themselves. If they don't it takes their money. */
|
||||
|
||||
cachedLastSuccess = 0;
|
||||
cachedNumBlocks = 0;
|
||||
cachedNumBlocks = std::numeric_limits<int>::max();
|
||||
unitTest = false;
|
||||
txCollateral = CMutableTransaction();
|
||||
minBlockSpacing = 0;
|
||||
|
@ -251,7 +251,7 @@ void OptionsDialog::on_resetButton_clicked()
|
||||
void OptionsDialog::on_okButton_clicked()
|
||||
{
|
||||
mapper->submit();
|
||||
darkSendPool.cachedNumBlocks = 0;
|
||||
darkSendPool.cachedNumBlocks = std::numeric_limits<int>::max();
|
||||
pwalletMain->MarkDirty();
|
||||
accept();
|
||||
}
|
||||
|
@ -517,7 +517,7 @@ void OverviewPage::toggleDarksend(){
|
||||
if(!ctx.isValid())
|
||||
{
|
||||
//unlock was cancelled
|
||||
darkSendPool.cachedNumBlocks = 0;
|
||||
darkSendPool.cachedNumBlocks = std::numeric_limits<int>::max();
|
||||
QMessageBox::warning(this, tr("Darksend"),
|
||||
tr("Wallet is locked and user declined to unlock. Disabling Darksend."),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
@ -528,8 +528,8 @@ void OverviewPage::toggleDarksend(){
|
||||
|
||||
}
|
||||
|
||||
darkSendPool.cachedNumBlocks = 0;
|
||||
fEnableDarksend = !fEnableDarksend;
|
||||
darkSendPool.cachedNumBlocks = std::numeric_limits<int>::max();
|
||||
|
||||
if(!fEnableDarksend){
|
||||
ui->toggleDarksend->setText(tr("Start Darksend Mixing"));
|
||||
|
Loading…
Reference in New Issue
Block a user