Skip to content

Commit 440e047

Browse files
committed
move osx process_events()
1 parent e03379a commit 440e047

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vedo/plotter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,18 +3685,18 @@ def close(self) -> Self:
36853685
return self
36863686

36873687
###################################################
3688-
try:
3689-
if "Darwin" in vedo.sys_platform:
3690-
self.interactor.ProcessEvents()
3691-
except:
3692-
pass
36933688

36943689
self._must_close_now = True
36953690

36963691
if self.interactor:
36973692
if self._interactive:
36983693
self.break_interaction()
36993694
self.interactor.GetRenderWindow().Finalize()
3695+
try:
3696+
if "Darwin" in vedo.sys_platform:
3697+
self.interactor.ProcessEvents()
3698+
except:
3699+
pass
37003700
self.interactor.TerminateApp()
37013701
self.camera = None
37023702
self.renderer = None

0 commit comments

Comments
 (0)