diff --git a/utils/update_check.py b/utils/update_check.py index c5eac1a..61ec5f2 100644 --- a/utils/update_check.py +++ b/utils/update_check.py @@ -106,7 +106,7 @@ def download_asset( if not expected: raise ValueError("The release asset has no valid SHA-256 checksum") - fd, name = tempfile.mkstemp(dir=str(dest_dir), suffix=suffix) + fd, name = tempfile.mkstemp(dir=str(dest_dir), suffix=suffix, prefix="TgWsProxy_tmp_") path = Path(name) try: sha = hashlib.sha256() diff --git a/windows.py b/windows.py index 0725fb5..bf2eaee 100644 --- a/windows.py +++ b/windows.py @@ -148,7 +148,7 @@ def update_ctk_form( width=310 if asset else 210, height=130 if asset else 100, theme=theme, - topmost=False, + topmost=True, after_create=lambda r: r.iconbitmap(ICON_PATH), ) frame = main_content_frame(ctk, root, theme, padx=16, pady=14)