This commit is contained in:
Ashley Wulber 2024-02-14 11:01:47 -05:00 committed by Ashley Wulber
parent fc91f31d81
commit 08b2e1ca38
2 changed files with 4 additions and 4 deletions

View file

@ -609,9 +609,9 @@ impl<App: Application> ApplicationExt for App {
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
fn set_window_title(&mut self, title: String) -> iced::Command<Message<Self::Message>> {
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()
}