From 5f31ccd739c1b2a73d6ed9735fd830f192afe60f Mon Sep 17 00:00:00 2001 From: WildSoft Date: Fri, 16 Oct 2026 09:52:46 +0300 Subject: [PATCH] Update public source --- gui/app.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gui/app.py b/gui/app.py index 7865530..9979043 100644 --- a/gui/app.py +++ b/gui/app.py @@ -271,6 +271,8 @@ scanner_process = None scanner_starting = False +network_action_active = False + scanner_health = "READY" scanner_stopped_at = None @@ -373,6 +375,8 @@ def network_actions_busy(): with scanner_lock: if ( + network_action_active + or scanner_starting or ( @@ -2276,6 +2280,16 @@ def gps_test_start(): with scanner_lock: + if network_action_active: + + return jsonify( + { + "ok": False, + "error": + "A Wi-Fi connection operation is in progress." + } + ), 409 + if ( scanner_starting or @@ -2666,6 +2680,17 @@ def scanner_start(): with scanner_lock: + if network_action_active: + + scanner_output.append( + "[GUI] Scanner cannot start " + "while a Wi-Fi connection operation is in progress." + ) + + return redirect( + url_for("index") + ) + if ( scanner_starting or