cargo: bump egui/eframe version from 0.26.0 to 0.28.1

This commit is contained in:
Mikolaj Wielgus 2024-09-10 17:04:15 +02:00
parent cf52c95113
commit d4079ef077
2 changed files with 4 additions and 3 deletions

View File

@ -67,13 +67,13 @@ version = "0.9.4"
[dependencies.eframe] [dependencies.eframe]
optional = true optional = true
version = "0.26.0" version = "0.28.1"
default-features = false default-features = false
features = ["accesskit", "default_fonts", "glow", "persistence"] features = ["accesskit", "default_fonts", "glow", "persistence"]
[dependencies.egui] [dependencies.egui]
optional = true optional = true
version = "0.26.0" version = "0.28.1"
[dependencies.rfd] [dependencies.rfd]
optional = true optional = true

View File

@ -21,6 +21,7 @@ use unic_langid::{langid, LanguageIdentifier};
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
fn main() -> eframe::Result<()> { fn main() -> eframe::Result<()> {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`). env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let langid = if let Some(langname) = get_locale() { let langid = if let Some(langname) = get_locale() {
langname.parse().unwrap_or(langid!("en-US")) langname.parse().unwrap_or(langid!("en-US"))
} else { } else {
@ -36,7 +37,7 @@ fn main() -> eframe::Result<()> {
eframe::run_native( eframe::run_native(
"topola-egui", "topola-egui",
native_options, native_options,
Box::new(|cc| Box::new(App::new(cc, langid))), Box::new(|cc| Ok(Box::new(App::new(cc, langid)))),
) )
} }