mirror of https://codeberg.org/topola/topola.git
cargo: bump egui/eframe version from 0.26.0 to 0.28.1
This commit is contained in:
parent
cf52c95113
commit
d4079ef077
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)))),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue