Fix behaivior of load bin file entry in menu
This commit is contained in:
parent
90bf6aa04f
commit
7ced15be5c
@ -88,9 +88,10 @@ impl AltairEmulator {
|
|||||||
);
|
);
|
||||||
ui.close_menu();
|
ui.close_menu();
|
||||||
}
|
}
|
||||||
if ui.button("Load binary file").clicked() {
|
if ui.add_enabled(!self.windows.contains_key("load_bin"), Button::new("Load binary file")).clicked() {
|
||||||
self.windows
|
self.windows
|
||||||
.insert("load_bin_window", Box::new(LoadBinWindow::new(ui.ctx())));
|
.insert("load_bin", Box::new(LoadBinWindow::new(ui.ctx())));
|
||||||
|
ui.close_menu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user