From cc597a31b9029b5bfa463523255c52c88612d874 Mon Sep 17 00:00:00 2001 From: mostafaei2002 Date: Tue, 11 Jun 2024 22:18:11 +0330 Subject: [PATCH] fix: set slider max decimals --- src/app/panels/middle/xvb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/panels/middle/xvb.rs b/src/app/panels/middle/xvb.rs index 283ca6c..11779eb 100644 --- a/src/app/panels/middle/xvb.rs +++ b/src/app/panels/middle/xvb.rs @@ -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() {