mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -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
15
cura/CuraActions.py
Normal file
15
cura/CuraActions.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
|
||||
|
||||
import webbrowser
|
||||
|
||||
class CuraActions(QObject):
|
||||
def __init__(self, parent = None):
|
||||
super().__init__(parent)
|
||||
|
||||
@pyqtSlot()
|
||||
def openDocumentation(self):
|
||||
webbrowser.open("http://ultimaker.com/en/support/software")
|
||||
|
||||
@pyqtSlot()
|
||||
def openBugReportPage(self):
|
||||
webbrowser.open("http://github.com/Ultimaker/Cura/issues")
|
Loading…
Add table
Add a link
Reference in a new issue