fix: immediatly apply simple mode
Some checks failed
Lockbud / lockbud (push) Has been cancelled
Rust / fmt (push) Has been cancelled
Rust / test (push) Has been cancelled
Rust / clippy (macos-latest) (push) Has been cancelled
Rust / clippy (ubuntu-latest) (push) Has been cancelled
Rust / check (macos-latest) (push) Has been cancelled
Rust / check (ubuntu-latest) (push) Has been cancelled
Rust / doc (push) Has been cancelled
Typo / typo (push) Has been cancelled

This commit is contained in:
Cyrix126 2024-11-20 09:20:14 +01:00
parent 0ea492d930
commit 4558b6670b

View file

@ -130,8 +130,9 @@ impl crate::disk::state::Xvb {
ui.style_mut().spacing.icon_spacing = space_h;
// --------------------------- XVB Simple -------------------------------------------
if self.simple && ui.checkbox(&mut self.simple_hero_mode, "Hero Mode").on_hover_text(XVB_HERO_SELECT).clicked() {
// change rutime mode immediately.
if self.simple {
ui.checkbox(&mut self.simple_hero_mode, "Hero Mode").on_hover_text(XVB_HERO_SELECT);
// set runtime mode immediately if we are on simple mode.
if self.simple_hero_mode {
api.lock().unwrap().stats_priv.runtime_mode = RuntimeMode::Hero;
} else {
@ -139,10 +140,7 @@ impl crate::disk::state::Xvb {
}
}
});
ui.add_space(space_h);
// --------------------------- XVB Advanced -----------------------------------------
if !self.simple {