Skip to content

Commit 4be3b27

Browse files
committed
Fixing race condition on double calls to setScale() on project load/launch. This caused the Ruler to be rendered blank.
1 parent 9ec4037 commit 4be3b27

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/windows/views/webview.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,10 @@ def changed(self, action):
227227
initial_scale = get_app().project.get("scale") or 15.0
228228
self.window.sliderZoomWidget.setZoomFactor(initial_scale)
229229

230-
# The setValue() above doesn't trigger update_zoom when a project file is
231-
# loaded on the command line (too early?), so also call the JS directly
232-
self.run_js(JS_SCOPE_SELECTOR + ".setScale(" + str(initial_scale) + ", 0);")
233-
234-
# Javascript callable function to update the project data when a clip changes
235230
@pyqtSlot(str, bool, bool, bool)
236231
def update_clip_data(self, clip_json, only_basic_props=True, ignore_reader=False, ignore_refresh=False):
237-
""" Create an updateAction and send it to the update manager """
232+
""" Javascript callable function to update the project data when a clip changes.
233+
Create an updateAction and send it to the update manager """
238234

239235
# read clip json
240236
try:

0 commit comments

Comments
 (0)