From 2e59f18afe45e6ab8613796391bb18d8ad3305e2 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 19 Dec 2025 10:09:46 +0100 Subject: [PATCH] Cleanups --- .../builtin/apps/com.micropythonos.wifi/assets/wifi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py b/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py index 0d7beaa0..854ba290 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py @@ -338,6 +338,7 @@ class EditNetwork(Activity): return else: self.selected_ssid = new_ssid + # If a password is filled, then it should be at least 8 characters: pwd = self.password_ta.get_text() if len(pwd) > 0 and len(pwd) < 8: self.password_ta.set_style_bg_color(lv.color_hex(0xff8080), 0) @@ -345,5 +346,5 @@ class EditNetwork(Activity): # Return the result hidden_checked = True if self.hidden_cb.get_state() & lv.STATE.CHECKED else False - self.setResult(True, {"ssid": self.selected_ssid, "password": self.password_ta.get_text(), "hidden": hidden_checked}) + self.setResult(True, {"ssid": self.selected_ssid, "password": pwd, "hidden": hidden_checked}) self.finish()