This commit is contained in:
Antonio Scandurra
2023-10-22 16:33:59 +02:00
parent 6ffeb048b3
commit 48033463c8
3 changed files with 22 additions and 10 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ impl App {
let unit_entity = entities.insert(entities.reserve(), ());
let app_metadata = AppMetadata {
os_name: platform.os_name(),
os_version: platform.os_version().unwrap_or_default(),
app_version: platform.app_version().unwrap_or_default(),
os_version: platform.os_version().ok(),
app_version: platform.app_version().ok(),
};
Self(Arc::new_cyclic(|this| {
Mutex::new(AppContext {
+2 -2
View File
@@ -184,8 +184,8 @@ pub trait PlatformTextSystem: Send + Sync {
#[derive(Clone, Debug)]
pub struct AppMetadata {
pub os_name: &'static str,
pub os_version: SemanticVersion,
pub app_version: SemanticVersion,
pub os_version: Option<SemanticVersion>,
pub app_version: Option<SemanticVersion>,
}
#[derive(PartialEq, Eq, Hash, Clone)]