From da056696e4b06b41132d5150337241bb625f0a83 Mon Sep 17 00:00:00 2001 From: SunDoge <384813529@qq.com> Date: Mon, 14 Nov 2022 21:05:02 +0800 Subject: [PATCH] remove argument `app` --- examples/custom_window_frame/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/custom_window_frame/src/main.rs b/examples/custom_window_frame/src/main.rs index 780512bc..39bff821 100644 --- a/examples/custom_window_frame/src/main.rs +++ b/examples/custom_window_frame/src/main.rs @@ -29,7 +29,7 @@ impl eframe::App for MyApp { } fn update(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame) { - custom_window_frame(self, ctx, frame, "egui with custom frame", |ui| { + custom_window_frame(ctx, frame, "egui with custom frame", |ui| { ui.label("This is just the contents of the window"); ui.horizontal(|ui| { ui.label("egui theme:"); @@ -40,7 +40,6 @@ impl eframe::App for MyApp { } fn custom_window_frame( - app: &mut MyApp, ctx: &egui::Context, frame: &mut eframe::Frame, title: &str,