mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: hashrate changes incorrectly after changing metric
This commit is contained in:
parent
f8f1260e1f
commit
8ea2462fe5
1 changed files with 2 additions and 0 deletions
|
@ -196,9 +196,11 @@ impl crate::disk::state::Xvb {
|
|||
).on_hover_text(slider_help_text);
|
||||
|
||||
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "H/s")).clicked() {
|
||||
self.amount *= 1000;
|
||||
self.manual_donation_metric = ManualDonationMetric::Hash;
|
||||
}
|
||||
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Kilo, "kH/s")).clicked() {
|
||||
self.amount /= 1000.0;
|
||||
self.manual_donation_metric = ManualDonationMetric::Kilo;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue