diff options
-rw-r--r-- | gui/src/gui/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/gui/mod.rs b/gui/src/gui/mod.rs index c54a17a..1b4b98e 100644 --- a/gui/src/gui/mod.rs +++ b/gui/src/gui/mod.rs @@ -51,7 +51,7 @@ impl Application for Distrox { fn new(name: String) -> (Self, iced::Command<Self::Message>) { ( Distrox::Loading, - iced::Command::perform(async { + iced::Command::perform(async move { match Profile::new_inmemory(Config::default(), &name).await { Err(_) => Message::FailedToLoad, Ok(instance) => { @@ -66,7 +66,7 @@ impl Application for Distrox { String::from("distrox") } - fn update(&mut self, message: Self::Message, _clipboard: &mut iced::Clipboard) -> iced::Command<Self::Message> { + fn update(&mut self, message: Self::Message) -> iced::Command<Self::Message> { match self { Distrox::Loading => { match message { @@ -124,7 +124,7 @@ impl Application for Distrox { fn view(&mut self) -> iced::Element<Self::Message> { match self { Distrox::Loading => { - let text = iced_native::widget::text::Text::new("Loading"); + let text = iced::Text::new("Loading"); let content = Column::new() .max_width(800) |