From 05d0ac8c03af2e81a89e37467fc02f88d1e5058b Mon Sep 17 00:00:00 2001 From: Arda Aydin Date: Sat, 19 Sep 2026 13:51:34 +0300 Subject: [PATCH] Validate username and password in Connect dialog too Co-Authored-By: Claude Opus 4.6 --- app_state.py | 2 +- connect_dialog.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app_state.py b/app_state.py index 536e15e..36dcef2 100644 --- a/app_state.py +++ b/app_state.py @@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it. import configparser import os -VERSION = "0.0.0.099" +VERSION = "0.0.0.100" PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties") DEFAULT_GRID_SIZE = 10 DEFAULT_ADD_TIMESTAMP = True diff --git a/connect_dialog.py b/connect_dialog.py index 1b27254..64cd725 100644 --- a/connect_dialog.py +++ b/connect_dialog.py @@ -93,6 +93,12 @@ class ConnectDialog: if not host: self._status_label.config(text="Host is required", foreground="#c00000") return + if not user: + self._status_label.config(text="Username is required", foreground="#c00000") + return + if not password: + self._status_label.config(text="Password is required", foreground="#c00000") + return try: port_int = int(port)