Skip to content

Commit

Permalink
Fix bug with open crashing egui
Browse files Browse the repository at this point in the history
  • Loading branch information
vaneri-9 committed Aug 30, 2023
1 parent 3f9ca1e commit 2d91836
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/gui_egui/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub fn gui(cs: ComponentStore, path: &PathBuf) -> Result<(), eframe::Error> {
let options = eframe::NativeOptions::default();
let path = path.to_owned();
simulator.save_dot(&path);
println!("contexts: {:?}", contexts);

let gui = Gui {
path,
Expand Down
1 change: 1 addition & 0 deletions src/gui_egui/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ pub fn file_open_fn(gui: &mut Gui) {
gui.path = path_buf;
}
let cs = ComponentStore::load_file(&gui.path);
gui.contexts = create_contexts(&cs.store);
match gui.editor_use {
true => {
if let Some(e) = gui.editor.as_mut() {
Expand Down

0 comments on commit 2d91836

Please sign in to comment.