Update eframe to 0.28 (#74)
This commit is contained in:
parent
c6bfea5018
commit
b560944234
@ -13,7 +13,7 @@ sevenz-rust = "0.6"
|
||||
chrono = "0.4"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
eframe = "0.27"
|
||||
eframe = "0.28"
|
||||
rfd = "0.14"
|
||||
sha2 = "0.10"
|
||||
rusttype = "0.9"
|
||||
|
||||
@ -126,7 +126,7 @@ fn main() {
|
||||
eframe::run_native(
|
||||
"gopher64",
|
||||
options,
|
||||
Box::new(|_cc| Box::new(ui::gui::GopherEguiApp::new())),
|
||||
Box::new(|_cc| Ok(Box::new(ui::gui::GopherEguiApp::new()))),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
@ -129,7 +129,9 @@ impl eframe::App for GopherEguiApp {
|
||||
}
|
||||
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.set_enabled(!self.configure_profile);
|
||||
if self.configure_profile {
|
||||
ui.disable()
|
||||
}
|
||||
|
||||
if ui.button("Open ROM").clicked() {
|
||||
// Spawn dialog on main thread
|
||||
|
||||
Reference in New Issue
Block a user