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

@ -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"))]

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()
}