From e8dda5c670ff638e3e34bf16c59d3dac434f723b Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Sun, 6 Oct 2024 12:07:41 +0200 Subject: [PATCH] fix: saving for node tab --- src/app/eframe_impl.rs | 2 ++ src/app/panels/bottom.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/app/eframe_impl.rs b/src/app/eframe_impl.rs index b8048cd..5429ab5 100644 --- a/src/app/eframe_impl.rs +++ b/src/app/eframe_impl.rs @@ -97,9 +97,11 @@ impl eframe::App for App { let og = lock!(self.og); self.diff = og.status != self.state.status || og.gupax != self.state.gupax + || og.node != self.state.node || og.p2pool != self.state.p2pool || og.xmrig != self.state.xmrig || og.xvb != self.state.xvb + // || og.node != self.state.node || self.og_node_vec != self.node_vec || self.og_pool_vec != self.pool_vec; drop(og); diff --git a/src/app/panels/bottom.rs b/src/app/panels/bottom.rs index b8245d4..e8fd0ae 100644 --- a/src/app/panels/bottom.rs +++ b/src/app/panels/bottom.rs @@ -176,6 +176,7 @@ impl crate::app::App { let og = lock!(self.og).clone(); self.state.status = og.status; self.state.gupax = og.gupax; + self.state.node = og.node; self.state.p2pool = og.p2pool; self.state.xmrig = og.xmrig; self.state.xmrig_proxy = og.xmrig_proxy; @@ -194,6 +195,7 @@ impl crate::app::App { let mut og = lock!(self.og); og.status = self.state.status.clone(); og.gupax = self.state.gupax.clone(); + og.node = self.state.node.clone(); og.p2pool = self.state.p2pool.clone(); og.xmrig = self.state.xmrig.clone(); og.xmrig_proxy = self.state.xmrig_proxy.clone();