mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
fix: typo
This commit is contained in:
parent
34b0ac86ea
commit
74af62fd3b
4 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -246,7 +246,7 @@ pub struct Xmrig {
|
|||
#[derive(Clone, Eq, PartialEq, Debug, Deserialize, Serialize)]
|
||||
pub enum XvbMode {
|
||||
Auto,
|
||||
ManuallyDonante,
|
||||
ManuallyDonate,
|
||||
ManuallyKeep,
|
||||
Hero,
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue