More best practice way

This commit is contained in:
Pcornat 2022-11-28 21:01:45 +01:00
parent c489be9c78
commit 1cff8df36b
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0

View File

@ -9,7 +9,7 @@ fn main() {
options,
Box::new(|_ctx| {
// ctx.egui_ctx.options().screen_reader = true;
Box::new(Gui::default())
Box::<Gui>::default()
}),
);
}
@ -41,7 +41,7 @@ impl eframe::App for Gui {
}
});
if ui.button(format!("Edit mode {}", self.edit_mode)).clicked() {
self.edit_mode = !self.edit_mode.clone();
self.edit_mode = !self.edit_mode;
}
});
});