Revert "fix: UART window stability on Windows — lift/focus, remove stray grab_release"
This reverts commit 4ef1ce0c6b.
This commit is contained in:
+1
-2
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user