Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
d34c85d
1
Parent(s):
a194ae7
- modules/core.py +2 -0
modules/core.py
CHANGED
@@ -78,6 +78,8 @@ def get_previewer(device, latent_format):
|
|
78 |
if not cv2_is_top:
|
79 |
cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 1)
|
80 |
cv2_is_top = True
|
|
|
|
|
81 |
cv2.waitKey(1)
|
82 |
|
83 |
taesd.preview = preview_function
|
|
|
78 |
if not cv2_is_top:
|
79 |
cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 1)
|
80 |
cv2_is_top = True
|
81 |
+
else:
|
82 |
+
cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 0)
|
83 |
cv2.waitKey(1)
|
84 |
|
85 |
taesd.preview = preview_function
|