mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
Default app_id to app_name on native (#8172)
### Related * Closes #7872. ### What On native (this is not limited to Wayland) we set the `app_id` to the `app_name` if it is `None`.
This commit is contained in:
committed by
lucasmerlin
parent
c86de5732d
commit
cbb5a26da2
@@ -370,6 +370,9 @@ fn init_native(app_name: &str, native_options: &mut NativeOptions) -> Renderer {
|
||||
if native_options.viewport.title.is_none() {
|
||||
native_options.viewport.title = Some(app_name.to_owned());
|
||||
}
|
||||
if native_options.viewport.app_id.is_none() {
|
||||
native_options.viewport.app_id = Some(app_name.to_owned());
|
||||
}
|
||||
|
||||
let renderer = native_options.renderer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user