From f449fcd334446d0a4600993d353d24bb64bd336c Mon Sep 17 00:00:00 2001 From: lvmin Date: Thu, 10 Aug 2023 17:22:01 -0700 Subject: [PATCH] i --- modules/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core.py b/modules/core.py index 39d3cb8..27c4bc4 100644 --- a/modules/core.py +++ b/modules/core.py @@ -78,6 +78,8 @@ def get_previewer(device, latent_format): if not cv2_is_top: cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 1) cv2_is_top = True + else: + cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 0) cv2.waitKey(1) taesd.preview = preview_function