mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Replace ui.ctx().foo with ui.foo in a few places (#7774)
Internal code cleanup after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -65,7 +65,7 @@ impl eframe::App for MyApp {
|
||||
ui.horizontal(|ui| {
|
||||
ui.monospace(cmd);
|
||||
if ui.small_button("📋").clicked() {
|
||||
ui.ctx().copy_text(cmd.into());
|
||||
ui.copy_text(cmd.into());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -75,7 +75,7 @@ impl eframe::App for MyApp {
|
||||
ui.checkbox(&mut self.keep_repainting, "Keep repainting");
|
||||
if self.keep_repainting {
|
||||
ui.spinner();
|
||||
ui.ctx().request_repaint();
|
||||
ui.request_repaint();
|
||||
} else {
|
||||
ui.label("Repainting on events (e.g. mouse movement)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user