More best practice way
This commit is contained in:
parent
c489be9c78
commit
1cff8df36b
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user