cleanup
This commit is contained in:
parent
fc91f31d81
commit
08b2e1ca38
2 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ use iced::wayland::Application as IcedApplication;
|
||||||
use iced::window;
|
use iced::window;
|
||||||
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
|
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
|
||||||
use iced::Application as IcedApplication;
|
use iced::Application as IcedApplication;
|
||||||
use iced_futures::event::{listen_raw, listen_with};
|
use iced_futures::event::listen_with;
|
||||||
#[cfg(not(feature = "wayland"))]
|
#[cfg(not(feature = "wayland"))]
|
||||||
use iced_runtime::command::Action;
|
use iced_runtime::command::Action;
|
||||||
#[cfg(not(feature = "wayland"))]
|
#[cfg(not(feature = "wayland"))]
|
||||||
|
|
|
||||||
|
|
@ -609,9 +609,9 @@ impl<App: Application> ApplicationExt for App {
|
||||||
|
|
||||||
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
|
#[cfg(not(any(feature = "multi-window", feature = "wayland")))]
|
||||||
fn set_window_title(&mut self, title: String) -> iced::Command<Message<Self::Message>> {
|
fn set_window_title(&mut self, title: String) -> iced::Command<Message<Self::Message>> {
|
||||||
self.core_mut()
|
let id = self.main_window_id();
|
||||||
.title
|
|
||||||
.insert(self.main_window_id(), title.clone());
|
self.core_mut().title.insert(id, title.clone());
|
||||||
iced::Command::none()
|
iced::Command::none()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue