fix: wayland exit_on_close

This commit is contained in:
Ashley Wulber 2024-05-28 19:07:58 -04:00 committed by Jeremy Soller
parent 8ecf1a8edd
commit 56ff501d36

View file

@ -98,7 +98,11 @@ pub(crate) fn iced_settings<App: Application>(
iced.default_font = settings.default_font;
iced.default_text_size = iced::Pixels(settings.default_text_size);
iced.exit_on_close_request = settings.exit_on_close;
iced.window.exit_on_close_request = settings.exit_on_close;
#[cfg(not(feature = "wayland"))]
{
let exit_on_close = settings.exit_on_close;
iced.window.exit_on_close_request = exit_on_close;
}
iced.id = Some(App::APP_ID.to_owned());
#[cfg(all(not(feature = "wayland"), target_os = "linux"))]
{