From 08b2e1ca385b836411729c162984d59449fe3e51 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 14 Feb 2024 11:01:47 -0500 Subject: [PATCH] cleanup --- src/app/cosmic.rs | 2 +- src/app/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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() }