Skip to content

Commit 3070467

Browse files
Update assetWindow
Fixed the bug which makes audio don't stop after closing.
1 parent 5db3ee5 commit 3070467

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

assetWindow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,11 @@ def _open_assets(self, link):
585585

586586
def closeEvent(self, arg__1):
587587
try:
588-
self.widget_video_play.stop()
588+
self.widget_video_play.stop() # 关闭就停止视频
589+
except Exception:
590+
pass
591+
try:
592+
self.widget_audioplay.stop() # 关闭就停止音频
589593
except Exception:
590594
pass
591595
return super().closeEvent(arg__1)

0 commit comments

Comments
 (0)