We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7783e4a commit 6acf8e3Copy full SHA for 6acf8e3
glue_wwt/viewer/tools.py
@@ -88,14 +88,11 @@ def activate(self):
88
89
self.viewer._wwt.widget.page.runJavaScript(SAVE_TOUR_CODE)
90
91
- start = time.time()
92
tourxml = None
93
- while time.time() - start < 10:
94
- time.sleep(0.1)
95
- app.processEvents()
96
- tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
97
- if tourxml:
98
- break
+ time.sleep(1)
+ app.processEvents()
+ tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
99
100
if not tourxml:
101
raise Exception("Failed to save tour")
0 commit comments