From 1b42f185cbc04bcab93e817e118a097d09644af7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 8 Dec 2021 18:36:54 +0100 Subject: Fix GUI impl for new iced version Signed-off-by: Matthias Beyer --- gui/src/gui/mod.rs | 6 +++--- 1 file 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) { ( 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 { + fn update(&mut self, message: Self::Message) -> iced::Command { match self { Distrox::Loading => { match message { @@ -124,7 +124,7 @@ impl Application for Distrox { fn view(&mut self) -> iced::Element { 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) -- cgit v1.2.3