From b518f4337d880aa6b7a45dc3886cfeb510e6e403 Mon Sep 17 00:00:00 2001 From: Kenneth Estanislao Date: Mon, 6 Jan 2025 14:14:04 +0800 Subject: [PATCH] Revert "Merge pull request #869 from kier007/patch-1" This reverts commit b38ef624471d15cdb2a0faf2fb877130d1655d3e, reversing changes made to c03f697729fa8649f58381ae0fd5c217afb18634. --- modules/ui.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index b58b9c6..b637dc6 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -256,7 +256,6 @@ def create_root(start: Callable[[], None], destroy: Callable[[], None]) -> ctk.C command=lambda: ( setattr(modules.globals, "map_faces", map_faces.get()), save_switch_states(), - close_popup_if_switch_off() ), ) map_faces_switch.place(relx=0.1, rely=0.75) @@ -383,15 +382,6 @@ def analyze_target(start: Callable[[], None], root: ctk.CTk): else: select_output_path(start) -def close_popup_if_switch_off(): - global POPUP, POPUP_LIVE - if not modules.globals.map_faces: - if POPUP and POPUP.winfo_exists(): - POPUP.destroy() - POPUP = None - if POPUP_LIVE and POPUP_LIVE.winfo_exists(): - POPUP_LIVE.destroy() - POPUP_LIVE = None def create_source_target_popup( start: Callable[[], None], root: ctk.CTk, map: list