mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 15:27:53 -06:00
Use python's webbrowser instead of Qt.openUrlExternally for opening urls
Qt.openUrlExternally crashes on Windows, but python webbrowser works. So use that instead. Fixes Asana issue 33694049548892
This commit is contained in:
parent
15e66a7a18
commit
3c5096cebc
3 changed files with 20 additions and 2 deletions
|
@ -33,6 +33,7 @@ from . import PlatformPhysics
|
|||
from . import BuildVolume
|
||||
from . import CameraAnimation
|
||||
from . import PrintInformation
|
||||
from . import CuraActions
|
||||
|
||||
from PyQt5.QtCore import pyqtSlot, QUrl, Qt, pyqtSignal, pyqtProperty
|
||||
from PyQt5.QtGui import QColor
|
||||
|
@ -184,6 +185,8 @@ class CuraApplication(QtApplication):
|
|||
engine.rootContext().setContextProperty("Printer", self)
|
||||
self._print_information = PrintInformation.PrintInformation()
|
||||
engine.rootContext().setContextProperty("PrintInformation", self._print_information)
|
||||
self._cura_actions = CuraActions.CuraActions(self)
|
||||
engine.rootContext().setContextProperty("CuraActions", self._cura_actions)
|
||||
|
||||
def onSelectionChanged(self):
|
||||
if Selection.hasSelection():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue