Removed duplicated code in worker thread
Some checks failed
Makefile CI / Release - Linux-x86_64 (push) Failing after 45s
Makefile CI / Release - Windows-x86_64 (push) Has been cancelled

This commit is contained in:
2025-03-29 10:29:03 -04:00
parent 644cfa4128
commit 8a889aef95
3 changed files with 2 additions and 20 deletions

View File

@@ -172,10 +172,9 @@ impl eframe::App for ShiftTool {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
log::debug!("Update Called.");
// Request repaint ensures GUI updates even if worker is slow
ctx.request_repaint_after(Duration::from_millis(50)); // e.g., 10 FPS target
ctx.request_repaint_after(Duration::from_millis(50));
egui::CentralPanel::default().show(ctx, |ui| {
// Use show_inside_add to handle resize correctly
egui::Resize::default()
.default_width(INITIAL_WIDTH)
.default_height(INITIAL_HEIGHT)