diff --git a/iced b/iced index 831fa81e1f4..53a8cc143c2 160000 --- a/iced +++ b/iced @@ -1 +1 @@ -Subproject commit 831fa81e1f47b210306255a796e7e7b7dda1a287 +Subproject commit 53a8cc143c2499f3b68379a4939b30732c0efa6a diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index b84acc6aa86..7c25c68b4e3 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 747a6f9f667..5a5116a9934 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() }