mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: set slider max decimals
This commit is contained in:
parent
e0378903d9
commit
cc597a31b9
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ impl crate::disk::state::Xvb {
|
|||
ui.spacing_mut().slider_width = width * 0.5;
|
||||
ui.add_sized(
|
||||
[width, text_edit],
|
||||
egui::Slider::new(&mut self.manual_slider_amount, 0.0..=(hashrate_xmrig as f64))
|
||||
egui::Slider::new(&mut self.manual_slider_amount, 0.0..=(hashrate_xmrig as f64)).max_decimals(3)
|
||||
).on_hover_text(slider_help_text);
|
||||
|
||||
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "H/s")).clicked() {
|
||||
|
|
Loading…
Reference in a new issue