diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index b84acc6a..7c25c68b 100644 --- a/src/app/cosmic.rs +++ b/src/app/cosmic.rs @@ -21,7 +21,7 @@ use iced::wayland::Application as IcedApplication; use iced::window; #[cfg(not(any(feature = "multi-window", feature = "wayland")))] use iced::Application as IcedApplication; -use iced_futures::event::{listen_raw, listen_with}; +use iced_futures::event::listen_with; #[cfg(not(feature = "wayland"))] use iced_runtime::command::Action; #[cfg(not(feature = "wayland"))] diff --git a/src/app/mod.rs b/src/app/mod.rs index 747a6f9f..5a5116a9 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -609,9 +609,9 @@ impl ApplicationExt for App { #[cfg(not(any(feature = "multi-window", feature = "wayland")))] fn set_window_title(&mut self, title: String) -> iced::Command> { - self.core_mut() - .title - .insert(self.main_window_id(), title.clone()); + let id = self.main_window_id(); + + self.core_mut().title.insert(id, title.clone()); iced::Command::none() }