Skip to content

Commit

Permalink
update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 committed Nov 27, 2022
1 parent 3ac5706 commit 1947c59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rust-version = "1.60"
[dependencies]
egui = "0.19.0"
eframe = { version = "0.19.0", features = [] }
cavestory-save-lib = "2.6.1"
cavestory-save-lib = "2.7.0"
rfd = "0.10.0"
strum = "0.24.1"

Expand Down
10 changes: 1 addition & 9 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl eframe::App for MainApp {
egui::Window::new("Equipments").show(ctx, |ui| {
for (i, equip) in Equipment::iter().enumerate() {
ui.checkbox(&mut self.equip_checked[i], equip.to_string());
profile.equipment.switch(equip, self.equip_checked[i]);
}
});

Expand Down Expand Up @@ -234,15 +235,6 @@ impl eframe::App for MainApp {
}

if ui.button("Save").clicked() {
let profile = &mut self.profile.unwrap();
for (i, equip) in Equipment::iter().enumerate() {
if self.equip_checked[i] {
profile.equipment.switch_on(equip);
} else {
profile.equipment.switch_off(equip);
}
}

let mut raw = raw.clone();
#[cfg(not(target_arch = "wasm32"))]
if let Some(path) = &self.path {
Expand Down

0 comments on commit 1947c59

Please sign in to comment.