diff --git a/src/app/panels/middle/xvb.rs b/src/app/panels/middle/xvb.rs index 41e10bc..492a6e9 100644 --- a/src/app/panels/middle/xvb.rs +++ b/src/app/panels/middle/xvb.rs @@ -204,7 +204,7 @@ impl crate::disk::state::Xvb { }; ui.horizontal(|ui| { - + if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "Hash")).clicked() { self.manual_donation_metric = ManualDonationMetric::Hash; self.manual_slider_amount = self.manual_amount_raw; @@ -217,7 +217,7 @@ impl crate::disk::state::Xvb { self.manual_donation_metric = ManualDonationMetric::Mega; self.manual_slider_amount = self.manual_amount_raw / 1_000_000.0; }; - + ui.spacing_mut().slider_width = width * 0.5; ui.add_sized( [width, text_edit], diff --git a/src/disk/state.rs b/src/disk/state.rs index 3a5a9ec..44f17a8 100644 --- a/src/disk/state.rs +++ b/src/disk/state.rs @@ -314,11 +314,10 @@ impl Display for ManualDonationMetric { let text = match self { Self::Hash => "H/s", Self::Kilo => "KH/s", - Self::Mega => "MH/s" + Self::Mega => "MH/s", }; write!(f, "{}", text) - } } diff --git a/src/utils/constants.rs b/src/utils/constants.rs index a5a717c..19f6d4b 100644 --- a/src/utils/constants.rs +++ b/src/utils/constants.rs @@ -442,7 +442,6 @@ pub const XVB_ROUND_DONOR_VIP_MIN_HR: u32 = 10000; pub const XVB_ROUND_DONOR_WHALE_MIN_HR: u32 = 100000; pub const XVB_ROUND_DONOR_MEGA_MIN_HR: u32 = 1000000; - // Manual Mode pub const XVB_MODE_MANUAL_XVB_HELP: &str = "Manually set the amount to donate to XmrVsBeast, If value is more than xmrig hashrate it might be changed"; pub const XVB_MODE_MANUAL_P2POOL_HELP: &str = "Manually set the amount to keep on P2pool, If value is more than xmrig hashrate it might be changed";