remove windows method (use commands instead)
This commit is contained in:
parent
ac20f35c62
commit
5e4e410b18
6 changed files with 8 additions and 73 deletions
|
|
@ -46,9 +46,6 @@ pub trait Application: Sized {
|
|||
/// title of your application when necessary.
|
||||
fn title(&self) -> String;
|
||||
|
||||
/// TODO(derezzedex)
|
||||
fn windows(&self) -> Vec<(window::Id, window::Settings)>;
|
||||
|
||||
/// Handles a __message__ and updates the state of the [`Application`].
|
||||
///
|
||||
/// This is where you define your __update logic__. All the __messages__,
|
||||
|
|
@ -170,16 +167,6 @@ where
|
|||
self.0.title()
|
||||
}
|
||||
|
||||
fn windows(&self) -> Vec<(window::Id, iced_winit::settings::Window)> {
|
||||
self.0
|
||||
.windows()
|
||||
.into_iter()
|
||||
.map(|(id, settings)| {
|
||||
(id, iced_winit::settings::Window::from(settings))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn update(&mut self, message: Self::Message) -> Command<Self::Message> {
|
||||
self.0.update(message)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue