fix: wayland exit_on_close
This commit is contained in:
parent
8ecf1a8edd
commit
56ff501d36
1 changed files with 5 additions and 1 deletions
|
|
@ -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"))]
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue