Jaime van Kessel
e7d9f0ce45
Added typing for various setting classes
2018-09-10 15:24:11 +02:00
Jaime van Kessel
a8fc6aabcc
Switch incorrect usage of getMachineExtruders to getActiveExtruderStacks
2018-09-07 16:27:56 +02:00
Jaime van Kessel
20ec8828ed
Fix incorrect type hinting
...
The type hinting indicated that the property was a dict, but it could also be None.
In cases where it was None, it would cause an exception, which was also fixed (since
unpacking None will break)
2018-09-07 15:32:07 +02:00
Lipu Fei
8e891b69b0
Move type hinting imports into TYPE_CHECKING block
2018-08-13 13:48:00 +02:00
Lipu Fei
25e6fd8bec
Fix incorrect type hinting
2018-08-13 13:47:26 +02:00
Lipu Fei
42b509cd4a
Fix a wrong type hinting
2018-08-13 13:44:07 +02:00
Diego Prado Gesto
de1b8edb72
Merge branch 'master' into CURA-5570_beyond_comprehension
2018-08-13 09:57:36 +02:00
Diego Prado Gesto
825a3cd08f
CURA-5570 Fix the configuration sync feature.
...
It crashed Cura because it was using an outdated signature of the method
getMaterialNodeByType.
2018-08-13 09:55:57 +02:00
Lipu Fei
9239e82b1f
Make mypy happy
...
CURA-5578
2018-08-08 12:56:49 +02:00
Lipu Fei
910ffe0ad5
Fix quality reset upon material deletion
...
CURA-5621
2018-08-07 16:15:05 +02:00
Lipu Fei
066a00653a
Add one more layer to the decision tree
2018-08-02 17:15:34 +02:00
Diego Prado Gesto
51c499b08c
When the extruder is being disabled and it is the currently selected
...
one, then switch to the default extruder. Also do not allow users to
click in a disabled extruder, only if they want to enable it again.
2018-07-16 16:26:55 +02:00
Lipu Fei
af02dc2758
Only use setMetaDataEntry()
2018-07-11 11:14:57 +02:00
Jack Ha
111a3556d2
Fixed possible errors and typing error. CURA-5389
2018-07-09 11:42:30 +02:00
Jack Ha
5af5aa9e35
Added reset profiles/materials and uninstall functionality and dialog. CURA-5389
2018-07-09 09:57:31 +02:00
Jack Ha
675c5064ed
Added checkPackageUsageAndUninstall and the package usage check. No confirmation dialog yet
2018-07-05 11:47:06 +02:00
Diego Prado Gesto
762a1b1bfd
Fix code-style
2018-07-03 12:06:06 +02:00
alekseisasin
debe142c18
Merge pull request #3914 from Ultimaker/CURA-5334_extruder_def_for_all
...
CURA-5334 Add extruder definitions for all single-extrusion machines
2018-07-02 15:56:45 +02:00
Jack Ha
3761123513
Merge branch 'master' into CURA-5334_extruder_def_for_all
2018-07-02 14:11:24 +02:00
Ian Paschal
680e98fb28
Removed duplicate '.self'
2018-07-02 13:11:01 +02:00
Diego Prado Gesto
0692192d58
Merge branch '3.4'
2018-07-02 09:10:57 +02:00
Diego Prado Gesto
56c7c6f2b2
CURA-5518 Check whether the the findDefinitionContainers return any
...
element or not.
2018-06-29 10:41:54 +02:00
Diego Prado Gesto
554a3fd908
Merge branch 'master' into mypy_fixes
...
Conflicts:
cura/Backups/Backup.py
cura/Settings/ExtruderManager.py
cura/Settings/MachineManager.py
2018-06-13 11:53:02 +02:00
Diego Prado Gesto
6e364f0895
CURA-5330 Fix typing and code-style in the ContainerNode and all the
...
related children, and QualityGroup and its children.
Also fix the related calls in the managers.
2018-06-13 10:55:57 +02:00
Diego Prado Gesto
2e174e75fa
CURA-5330 Add typing checks to the MachineManager
2018-06-12 16:28:39 +02:00
Jack Ha
5f53195578
CURA-5334 factor out the need for material_diameter in machine definition for getMaterialNodeByType
2018-06-12 11:40:19 +02:00
Jack Ha
44e9d1e334
CURA-5334 factor out the need for material_diameter in machine definition for getDefaultMaterial
2018-06-12 11:25:02 +02:00
Jack Ha
b3f6e5c9e0
CURA-5327 renamed MachineManager._updateMaterialWithVariant to updateMaterialWithVariant
2018-06-11 15:52:28 +02:00
Lipu Fei
74e3785a03
Fix material update upon loading a machine
...
CURA-5327
2018-06-11 13:42:38 +02:00
Diego Prado Gesto
e5e96bc600
Merge branch 'master' into mypy_fixes
...
Contributes to CURA-5330
2018-06-08 15:29:22 +02:00
Ghostkeeper
8202b62343
Merge branch '3.4'
2018-06-07 11:38:13 +02:00
Ghostkeeper
624bbbeb4a
Account for the fact that createMachine can return None
...
Contributes to issue CURA-5337.
See also #3787 .
2018-06-07 11:37:48 +02:00
Ghostkeeper
c42b275c5d
Merge branch '3.4'
2018-06-06 16:58:01 +02:00
Diego Prado Gesto
1019f2dd65
CURA-5449 Do not check if the name is the correct group name if the
...
output device is manual create device and it is marked as temporary.
Wait until all the information is retrieved when the request finishes.
2018-06-06 14:54:26 +02:00
Lipu Fei
7f7a195627
Fix merge conflicts from 3.4
2018-06-05 09:02:52 +02:00
Ghostkeeper
02a3067a0c
Reset infill line distance when changing density via recommended mode
...
Otherwise the change has no effect.
Contributes to issue CURA-5324.
2018-06-04 16:58:13 +02:00
Diego Prado Gesto
36e72ae744
Merge branch '3.4' into fix_retraction_amount
2018-06-04 14:42:39 +02:00
Ghostkeeper
e4a0345fe4
Fix more minor typing mistakes
...
Contributes to issue CURA-5330.
2018-06-01 16:40:57 +02:00
Ghostkeeper
c3bac474ab
Use CuraContainerRegistry instead of ContainerRegistry
...
Because we're calling functions of CuraContainerRegistry.
Contributes to issue CURA-5330.
2018-06-01 16:33:32 +02:00
Ghostkeeper
ff4a214c24
Add function typing
...
This makes MyPy discover a lot of typing errors because it now starts analysing all of these functions.
Contributes to issue CURA-5330.
2018-06-01 14:53:54 +02:00
Lipu Fei
41e94cd2a1
Fix merge problems from 3.4
2018-06-01 13:51:43 +02:00
Lipu Fei
61a3668a4f
Merge remote-tracking branch 'origin/3.4'
2018-06-01 13:51:00 +02:00
Diego Prado Gesto
85560abca3
CURA-5439 Show the keep or discard changes dialog also when the user
...
applies a configuration using the Sync button.
2018-06-01 13:26:14 +02:00
Lipu Fei
eb949472e8
Merge remote-tracking branch 'origin/master' into WIP_improve_initialization
2018-05-31 13:47:27 +02:00
Diego Prado Gesto
931d4716e1
CURA-5404 Retrieve the material settings' values from the variant before
...
retrieving it from the definition if there are not defined in the material.
2018-05-30 16:58:11 +02:00
Lipu Fei
80d4989843
Show keep/discard user settings dialog upon variant change
...
CURA-5417
2018-05-30 09:03:36 +02:00
Lipu Fei
7cf2832183
Fix quality_group is None check in _setQualityGroup()
...
CURA-5423
2018-05-29 13:43:32 +02:00
Lipu Fei
1c3bae3fe4
Show keep/discard dialog upon material change if there are user changes
...
CURA-5417
2018-05-29 10:52:06 +02:00
Diego Prado Gesto
8ad409ff55
Merge branch 'master' into WIP_improve_initialization
2018-05-14 15:15:02 +02:00
Diego Prado Gesto
43657010ba
CURA-5164 The Preferences is not a singleton class anymore since in some point
...
several instances need to be created.
- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.
- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.
- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00