fix(app): only set application_id on Linux

This commit is contained in:
Jeremy Soller 2024-10-21 09:47:38 -06:00
parent 6f5d096be2
commit e380b2bd81
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -104,7 +104,10 @@ pub(crate) fn iced_settings<App: Application>(
let mut window_settings = iced::window::Settings::default();
window_settings.exit_on_close_request = exit_on_close;
iced.id = Some(App::APP_ID.to_owned());
window_settings.platform_specific.application_id = App::APP_ID.to_string();
#[cfg(target_os = "linux")]
{
window_settings.platform_specific.application_id = App::APP_ID.to_string();
}
core.exit_on_main_window_closed = exit_on_close;
if let Some(border_size) = settings.resizable {