summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-08 18:36:54 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-08 18:44:24 +0100
commit1b42f185cbc04bcab93e817e118a097d09644af7 (patch)
tree1737f187d8dd229207a0f8e5a1d706dfc3a3010f
parent8b019270a0fb90e801ca6d44cbb32e8340e371ea (diff)
Fix GUI impl for new iced version
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--gui/src/gui/mod.rs6
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)