Revert "fix: UART window stability on Windows — lift/focus, remove stray grab_release"

This reverts commit 4ef1ce0c6b.
This commit is contained in:
2026-06-12 14:18:49 +08:00
parent 03bc5d5268
commit c9636b2fcd
+1 -2
View File
@@ -973,8 +973,6 @@ class UartMonitorWindow(ctk.CTkToplevel):
self.geometry("680x540") self.geometry("680x540")
self.minsize(480, 360) self.minsize(480, 360)
self.protocol("WM_DELETE_WINDOW", self._on_close) self.protocol("WM_DELETE_WINDOW", self._on_close)
self.lift() # ensure visible on Windows
self.focus()
self._on_log = on_log self._on_log = on_log
@@ -1223,4 +1221,5 @@ class UartMonitorWindow(ctk.CTkToplevel):
if self._monitor: if self._monitor:
self._monitor.stop() self._monitor.stop()
self._monitor = None self._monitor = None
self.grab_release()
self.destroy() self.destroy()