From 952ff82d63fcc8364331ea9fddafc87e76b92f45 Mon Sep 17 00:00:00 2001 From: Connor Slade Date: Mon, 10 Feb 2025 17:24:29 -0500 Subject: [PATCH] Fix UI freeze while slicing --- mslicer/src/app/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mslicer/src/app/mod.rs b/mslicer/src/app/mod.rs index 4131ae6..ca28baa 100644 --- a/mslicer/src/app/mod.rs +++ b/mslicer/src/app/mod.rs @@ -163,8 +163,9 @@ impl App { [{ self.slice_operation } as slice_operation], move || { let slice_operation = slice_operation.as_ref().unwrap(); + let slice_result = slicer.slice_format(); let preview_image = slice_operation.preview_image(); - let file = FormatSliceFile::from_slice_result(preview_image, slicer.slice_format()); + let file = FormatSliceFile::from_slice_result(preview_image, slice_result); let layers = file.info().layers as usize; slice_operation.add_result(SliceResult {