Skip to content

Commit c8d808d

Browse files
committed
Update disconnect function to re-check zone and antenna requirements when enabling the Connect button
1 parent ded7019 commit c8d808d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/wardrive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5546,7 +5546,7 @@ async function disconnect() {
55465546
state.disconnectReason = "ble_disconnect_error"; // Mark specific disconnect reason
55475547
state.bleDisconnectErrorMessage = e.message || "Disconnect failed"; // Store error message
55485548
} finally {
5549-
setConnectButtonDisabled(false);
5549+
updateConnectButtonState(); // Re-check zone and antenna requirements
55505550
}
55515551
}
55525552

0 commit comments

Comments
 (0)