v1.9.18: revert GUI to v1.9.14 state — fix broken window display

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-03-05 04:09:47 -05:00
parent cf319c502e
commit d33f573483
7 changed files with 15 additions and 112 deletions

View File

@@ -83,11 +83,7 @@ class UpdateDialog(ctk.CTkToplevel):
self.geometry("500x420")
self.resizable(False, False)
self.transient(parent)
self.focus_force()
self.protocol("WM_DELETE_WINDOW", self._on_close)
self._master_ref = parent
self._map_bind_id = parent.bind("<Map>", self._on_parent_map, add="+")
self.grab_set()
self._info = info
self._downloaded_path = downloaded_path
@@ -103,23 +99,6 @@ class UpdateDialog(ctk.CTkToplevel):
py = parent.winfo_y() + (parent.winfo_height() - 420) // 2
self.geometry(f"+{px}+{py}")
def _on_parent_map(self, event=None):
try:
if not self.winfo_exists():
return
self.deiconify()
self.lift()
self.focus_force()
except Exception:
pass
def _on_close(self):
try:
self._master_ref.unbind("<Map>", self._map_bind_id)
except Exception:
pass
self.destroy()
def _build_ui(self):
from version import __version__
@@ -215,7 +194,7 @@ class UpdateDialog(ctk.CTkToplevel):
width=80, height=34, corner_radius=8,
fg_color="#4b5563", hover_color="#374151",
font=ctk.CTkFont(size=13),
command=self._on_close,
command=self.destroy,
).pack(side="right", padx=(8, 0))
ctk.CTkButton(
@@ -289,4 +268,4 @@ class UpdateDialog(ctk.CTkToplevel):
def _on_skip_click(self):
if self._on_skip:
self._on_skip(self._info["version"])
self._on_close()
self.destroy()