From 748b06b421d23b52c7a55c913d9ab61face7c205 Mon Sep 17 00:00:00 2001 From: ultrageese Date: Wed, 3 Jun 2026 13:51:38 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B1=D1=8F=D1=83=D1=83=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/src/app.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/code/src/app.rs b/code/src/app.rs index 17af2a8..9a5112a 100644 --- a/code/src/app.rs +++ b/code/src/app.rs @@ -109,6 +109,7 @@ struct MainTabViewer { material_tabs: MaterialTabViewer, material_tree: egui_dock::DockState, rt: tokio::runtime::Runtime, + equipment_modal_state: ModalWinState, is_dark_theme: bool, interface_scale_ratio: f32, } @@ -296,6 +297,18 @@ struct WorkerTabViewer { edit_worker_is_fired: bool, edit_worker_position: Position, + equipment_modal_state: ModalWinState { + is_open: false, + can_finish: false, + data: HashMap::from([ + ("id".to_owned(), String::new()), + ("inv_number".to_owned(), String::new()), + ("maintenance_date".to_owned(), String::new()), + ("worker_id".to_owned(), String::new()), + ]), + status: ModalStatus::Add + }, + rt: tokio::runtime::Runtime, show_position_delete_modal: bool, delete_position: Position, @@ -1307,4 +1320,4 @@ impl egui_dock::TabViewer for RecipeTabViewer { } } } -} +} \ No newline at end of file