Fixed UI mining stats.

This commit is contained in:
Revertron
2021-04-23 17:36:47 +02:00
parent 65483f73c9
commit 70c0c25a6a
+2
View File
@@ -219,11 +219,13 @@ fn action_loaded(context: &Arc<Mutex<Context>>, 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 {