mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 06:39:21 +00:00
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
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:
parent
0ea492d930
commit
4558b6670b
1 changed files with 3 additions and 5 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue