(config: &AppConfig)
| 28 | pub fn egui_waker(ctx: &egui::Context) -> Waker { Waker::from(Arc::new(EguiWaker(ctx.clone()))) } |
| 29 | |
| 30 | pub fn is_create_scratch_available(config: &AppConfig) -> bool { |
| 31 | let Some(selected_obj) = &config.selected_obj else { |
| 32 | return false; |
| 33 | }; |
| 34 | selected_obj.target_path.is_some() && selected_obj.scratch.is_some() |
| 35 | } |
| 36 | |
| 37 | pub fn start_create_scratch( |
| 38 | ctx: &egui::Context, |