|
20 | 20 | property bool isLE50 |
21 | 21 | property bool isLE51 |
22 | 22 | property bool isLE52 |
| 23 | + property bool isLE59 |
23 | 24 |
|
24 | 25 | property bool prepareStageActive: UM.Controller.activeStage.toString().indexOf("PrepareStage") == 0 |
25 | 26 | property bool preSlicedData: PrintInformation !== null && PrintInformation.preSliced |
|
32 | 33 |
|
33 | 34 | Component.onCompleted: |
34 | 35 | { |
35 | | - is40 = (CuraSDKVersion == "6.0.0") |
36 | | - isLE43 = (CuraSDKVersion <= "6.3.0") |
37 | | - isLE44 = (CuraSDKVersion <= "7.0.0") |
38 | | - isLE46 = (CuraSDKVersion <= "7.2.0") |
39 | | - isLE410 = (CuraSDKVersion <= "7.6.0") |
40 | | - isLE413 = (CuraSDKVersion <= "7.9.0") |
41 | | - isLE50 = (CuraSDKVersion <= "8.0.0") |
42 | | - isLE51 = (CuraSDKVersion <= "8.1.0") |
43 | | - isLE52 = (CuraSDKVersion <= "8.2.0") && UM.Application.version != "master" && UM.Application.version != "dev" |
| 36 | + // create a version string that can be easily compared, even with the minor version >= 10 |
| 37 | + var SortableSDKVersion = parseInt(CuraSDKVersion.replace(/\.(\d)\./g, ".0$1.")) |
| 38 | + is40 = (SortableSDKVersion == "6.00.0") |
| 39 | + isLE43 = (SortableSDKVersion <= "6.03.0") |
| 40 | + isLE44 = (SortableSDKVersion <= "7.00.0") |
| 41 | + isLE46 = (SortableSDKVersion <= "7.02.0") |
| 42 | + isLE410 = (SortableSDKVersion <= "7.06.0") |
| 43 | + isLE413 = (SortableSDKVersion <= "7.09.0") |
| 44 | + isLE50 = (SortableSDKVersion <= "8.00.0") |
| 45 | + isLE51 = (SortableSDKVersion <= "8.01.0") |
| 46 | + isLE52 = (SortableSDKVersion <= "8.02.0") |
| 47 | + isLE59 = (SortableSDKVersion <= "8.09.0") && CuraApplication.version != "master" && CuraApplication.version != "dev" |
44 | 48 | if(is40) |
45 | 49 | { |
46 | 50 | CuraApplication.log("SidebarGUIPlugin patching interface for Cura 4.0") |
|
67 | 71 | } |
68 | 72 | else if(isLE52) |
69 | 73 | { |
70 | | - CuraApplication.log("SidebarGUIPlugin patching interface for Cura 5.2 and newer") |
| 74 | + CuraApplication.log("SidebarGUIPlugin patching interface for Cura 5.2") |
| 75 | + } |
| 76 | + else if(isLE59) |
| 77 | + { |
| 78 | + CuraApplication.log("SidebarGUIPlugin patching interface for Cura 5.3 - 5.9") |
71 | 79 | } |
72 | 80 | else |
73 | 81 | { |
74 | | - CuraApplication.log("SidebarGUIPlugin patching interface for Cura 5.3 and newer") |
| 82 | + CuraApplication.log("SidebarGUIPlugin patching interface for Cura 5.10 and newer") |
75 | 83 | } |
76 | 84 |
|
77 | 85 | // top-align toolbar (defined in Cura.qml) |
|
0 commit comments