fix: setting manual donation level not applied sometimes

This commit is contained in:
Cyrix126 2024-07-29 16:36:58 +02:00
parent 8819f73984
commit 431ba0b83b

View file

@ -447,12 +447,14 @@ impl PubXvbApi {
} }
let runtime_mode = std::mem::take(&mut gui_api.stats_priv.runtime_mode); 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_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 { *gui_api = Self {
output, output,
stats_priv: XvbPrivStats { stats_priv: XvbPrivStats {
runtime_mode, runtime_mode,
runtime_manual_amount, runtime_manual_amount,
runtime_manual_donation_level,
..pub_api.stats_priv.clone() ..pub_api.stats_priv.clone()
}, },
p2pool_sent_last_hour_samples: std::mem::take( p2pool_sent_last_hour_samples: std::mem::take(