(
ctx: &egui::Context,
jobs: &mut JobQueue,
state: &AppState,
function_name: String,
)
| 35 | } |
| 36 | |
| 37 | pub fn start_create_scratch( |
| 38 | ctx: &egui::Context, |
| 39 | jobs: &mut JobQueue, |
| 40 | state: &AppState, |
| 41 | function_name: String, |
| 42 | ) { |
| 43 | match create_scratch_config(state, function_name) { |
| 44 | Ok(config) => { |
| 45 | jobs.push_once(Job::CreateScratch, || { |
| 46 | create_scratch::start_create_scratch(egui_waker(ctx), config) |
| 47 | }); |
| 48 | } |
| 49 | Err(err) => { |
| 50 | log::error!("Failed to create scratch config: {err}"); |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | fn create_scratch_config( |
| 56 | state: &AppState, |
no test coverage detected