We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a70ec1c commit 75936ebCopy full SHA for 75936eb
SidebarIncompatibleVersion.py
@@ -4,8 +4,16 @@
4
import os.path
5
import json
6
7
-from PyQt6.QtCore import QUrl
8
-from PyQt6.QtGui import QDesktopServices
+try:
+ from cura.ApplicationMetadata import CuraSDKVersion
9
+except ImportError: # Cura <= 3.6
10
+ CuraSDKVersion = "6.0.0"
11
+if CuraSDKVersion >= "8.0.0":
12
+ from PyQt6.QtCore import QUrl
13
+ from PyQt6.QtGui import QDesktopServices
14
+else:
15
+ from PyQt5.QtCore import QUrl
16
+ from PyQt5.QtGui import QDesktopServices
17
18
from cura.CuraApplication import CuraApplication
19
from UM.Extension import Extension
@@ -14,7 +22,7 @@
22
23
from UM.i18n import i18nCatalog
24
-i18n_catalog = i18nCatalog("octoprint")
25
+i18n_catalog = i18nCatalog("cura")
26
27
20
28
class SidebarIncompatibleVersion(Extension):
0 commit comments