mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
eframe: Use NativeOptions::AppId for the persistance location (#3014)
* eframe: Use NativeOptions::AppId for the persistance location * Fix doclinks * Fix typo in docs Closes https://github.com/emilk/egui/issues/3003
This commit is contained in:
@@ -3,9 +3,6 @@ use winit::event_loop::EventLoopWindowTarget;
|
||||
#[cfg(target_os = "macos")]
|
||||
use winit::platform::macos::WindowBuilderExtMacOS as _;
|
||||
|
||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||
use winit::platform::wayland::WindowBuilderExtWayland as _;
|
||||
|
||||
#[cfg(feature = "accesskit")]
|
||||
use egui::accesskit;
|
||||
use egui::NumExt as _;
|
||||
@@ -123,6 +120,7 @@ pub fn window_builder<E>(
|
||||
|
||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||
if let Some(app_id) = &native_options.app_id {
|
||||
use winit::platform::wayland::WindowBuilderExtWayland as _;
|
||||
window_builder = window_builder.with_name(app_id, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user