From 70c0c25a6aff727ed22bf0432a4508ef599454f4 Mon Sep 17 00:00:00 2001 From: Revertron Date: Fri, 23 Apr 2021 17:36:47 +0200 Subject: [PATCH] Fixed UI mining stats. --- src/web_ui.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web_ui.rs b/src/web_ui.rs index 973710b..7aae9b0 100644 --- a/src/web_ui.rs +++ b/src/web_ui.rs @@ -219,11 +219,13 @@ fn action_loaded(context: &Arc>, web_view: &mut WebView<()>) { } Event::MinerStarted | Event::KeyGeneratorStarted => { status.mining = true; + status.max_diff = 0; event_handle_info(&handle, "Mining started"); String::from("setLeftStatusBarText('Mining...'); showMiningIndicator(true, false);") } Event::MinerStopped { success, full} => { status.mining = false; + status.max_diff = 0; let mut s = if status.syncing { String::from("setLeftStatusBarText('Syncing...'); showMiningIndicator(true, true);") } else {