From 431ba0b83bc03b41440ace2ecb0b471a45090a37 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Mon, 29 Jul 2024 16:36:58 +0200 Subject: [PATCH] fix: setting manual donation level not applied sometimes --- src/helper/xvb/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helper/xvb/mod.rs b/src/helper/xvb/mod.rs index 3456594..f4dc314 100644 --- a/src/helper/xvb/mod.rs +++ b/src/helper/xvb/mod.rs @@ -447,12 +447,14 @@ impl PubXvbApi { } let runtime_mode = std::mem::take(&mut gui_api.stats_priv.runtime_mode); let runtime_manual_amount = std::mem::take(&mut gui_api.stats_priv.runtime_manual_amount); - + let runtime_manual_donation_level = + std::mem::take(&mut gui_api.stats_priv.runtime_manual_donation_level); *gui_api = Self { output, stats_priv: XvbPrivStats { runtime_mode, runtime_manual_amount, + runtime_manual_donation_level, ..pub_api.stats_priv.clone() }, p2pool_sent_last_hour_samples: std::mem::take(