Update cura/SingleInstance.py

Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
Saumya Jain 2024-02-08 10:51:49 +01:00 committed by GitHub
parent cf1a7889c2
commit 495be39d1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ class SingleInstance:
#command: Load a url link in Cura
elif command == "open-url":
url = QUrl(payload["urlPath"])
self._application.callLater(lambda f = url: self._application._openUrl(f))
self._application.callLater(lambda: self._application._openUrl(url))
# Command: Activate the window and bring it to the top.