From 14fefa99fae1433de08812558c07a0f81c40ab04 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 24 Oct 2022 11:11:19 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0?= =?UTF-8?q?=20=D1=81=D0=B5=D0=B4=D1=8C=D0=BC=D0=B0=D1=8F=20=D0=BB=D0=B0?= =?UTF-8?q?=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9d6fafe..f672971 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,11 @@ -mod lab_trait; mod lab1; mod lab3; mod lab6; +mod lab7; +mod lab_trait; -use lab_trait::Lab; use eframe::egui; +use lab_trait::Lab; fn main() { let options = eframe::NativeOptions::default(); @@ -26,6 +27,7 @@ impl Default for Application { Box::new(lab1::Window::default()), Box::new(lab3::Window::default()), Box::new(lab6::Window::default()), + Box::new(lab7::Window::default()), ], } } @@ -34,9 +36,7 @@ impl Default for Application { impl eframe::App for Application { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { for window in &mut self.labs { - egui::Window::new(window.get_name()) - .show(ctx, |ui| window.update(ui)); + egui::Window::new(window.get_name()).show(ctx, |ui| window.update(ui)); } } } - -- cgit v1.2.3