From 8e4f3ff9517162853d02b25319561dd085c00e3a Mon Sep 17 00:00:00 2001 From: Twest2 Date: Tue, 7 Jul 2026 12:18:05 -0500 Subject: [PATCH] Fix_selftest_window_guard --- app/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.js b/app/main.js index 8700f72..d90afbf 100644 --- a/app/main.js +++ b/app/main.js @@ -285,6 +285,8 @@ function createWindow() { throw new Error('arm selftest backend never became ready'); } await new Promise((res) => setTimeout(res, 1500)); + if (mainWindow.isVisible()) mainWindow.hide(); + await new Promise((res) => setTimeout(res, 200)); const armPoint = { x: Math.round(bounds.x + bounds.width * 0.4), y: Math.round(bounds.y + bounds.height * 0.4), @@ -316,6 +318,8 @@ function createWindow() { throw new Error('debounce selftest backend never became ready'); } await new Promise((res) => setTimeout(res, 1500)); + if (mainWindow.isVisible()) mainWindow.hide(); + await new Promise((res) => setTimeout(res, 200)); await new Promise((res) => setTimeout(res, 300)); const dbPoint = { x: Math.round(bounds.x + bounds.width * 0.55),