mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: slider metric
This commit is contained in:
parent
82c55601cc
commit
40d7570bf2
1 changed files with 4 additions and 1 deletions
|
@ -195,8 +195,11 @@ impl crate::disk::state::Xvb {
|
|||
egui::Slider::new(&mut self.amount, 0.0..=(hashrate_xmrig as f64))
|
||||
).on_hover_text(slider_help_text);
|
||||
|
||||
ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "H/s"));
|
||||
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "H/s")).clicked() {
|
||||
self.manual_donation_metric = ManualDonationMetric::Hash;
|
||||
}
|
||||
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Kilo, "kH/s")).clicked() {
|
||||
self.manual_donation_metric = ManualDonationMetric::Kilo;
|
||||
self.amount *= 1000.0;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue