Update eframe to 0.28 (#74)

This commit is contained in:
Logan McNaughton 2024-07-04 22:19:05 +02:00 committed by GitHub
parent c6bfea5018
commit b560944234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -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"

View File

@ -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();
}

View File

@ -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