fix: typo

This commit is contained in:
mostafaei2002 2024-06-06 16:44:48 +03:30
parent 34b0ac86ea
commit 74af62fd3b
4 changed files with 6 additions and 6 deletions

View file

@ -122,11 +122,11 @@ impl crate::disk::state::Xvb {
ui.horizontal(|ui| {
ui.selectable_value(&mut self.mode, XvbMode::Auto, "Automatic");
ui.selectable_value(&mut self.mode, XvbMode::Hero, "Hero Mode");
ui.selectable_value(&mut self.mode, XvbMode::ManuallyDonante, "Manually Donate");
ui.selectable_value(&mut self.mode, XvbMode::ManuallyDonate, "Manually Donate");
ui.selectable_value(&mut self.mode, XvbMode::ManuallyKeep, "Manually Keep");
})
});
if self.mode == XvbMode::ManuallyDonante || self.mode == XvbMode::ManuallyKeep {
if self.mode == XvbMode::ManuallyDonate || self.mode == XvbMode::ManuallyKeep {
ui.horizontal(|ui| {
ui.add(
TextEdit::singleline(&mut self.amount)

View file

@ -246,7 +246,7 @@ pub struct Xmrig {
#[derive(Clone, Eq, PartialEq, Debug, Deserialize, Serialize)]
pub enum XvbMode {
Auto,
ManuallyDonante,
ManuallyDonate,
ManuallyKeep,
Hero,
}

View file

@ -82,7 +82,7 @@ pub(crate) fn calcul_donated_time(
output_console(gui_api_xvb, "Hero mode is enabled for this decision");
default_spared_time
},
RuntimeMode::ManuallyDonante => {
RuntimeMode::ManuallyDonate => {
let donate_hr = lock!(gui_api_xvb).stats_priv.runtime_manual_amount;
info!("RuntimeMode::ManuallyDonate - lhr:{lhr} donate_hr:{donate_hr}");
if lhr < 1.0 {

View file

@ -22,7 +22,7 @@ use super::{nodes::XvbNode, rounds::XvbRound, PubXvbApi};
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
pub enum RuntimeMode {
Auto,
ManuallyDonante,
ManuallyDonate,
ManuallyKeep,
Hero,
}
@ -123,7 +123,7 @@ impl From<XvbMode> for RuntimeMode {
fn from(mode: XvbMode) -> Self {
match mode {
XvbMode::Auto => Self::Auto,
XvbMode::ManuallyDonante => Self::ManuallyDonante,
XvbMode::ManuallyDonate => Self::ManuallyDonate,
XvbMode::ManuallyKeep => Self::ManuallyKeep,
XvbMode::Hero => Self::Hero,
}