From 1d9efbfcfe1bdd39340921324ebd8dd073c1c18f Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Thu, 22 Nov 2018 09:32:51 -0800 Subject: [PATCH] Force refresh after settings update --- src/mainwindow.ui | 6 +++--- src/rpc.cpp | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 2267199..5682ae2 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -22,7 +22,7 @@ - 0 + 1 @@ -249,7 +249,7 @@ false - Pay From + From false @@ -705,7 +705,7 @@ - + diff --git a/src/rpc.cpp b/src/rpc.cpp index 2c63d2c..318153b 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -82,7 +82,10 @@ void RPC::setConnection(Connection* c) { ui->statusBar->showMessage("Ready!"); refreshZECPrice(); - refresh(); + + // Force update, because this might be coming from a settings update + // where we need to immediately refresh + refresh(true); } void RPC::getZAddresses(const std::function& cb) {