16 Commits

Author SHA1 Message Date
Ghostkeeper
3513266549
Guard against unexpected file structures
We shouldn't break on that.

Contributes to issue CURA-7024.
2020-02-04 15:52:12 +01:00
Ghostkeeper
a1f3444271
Don't delete containers from plugins directory
Some plug-ins provide extra profiles and we don't want to check them or delete them regardless of what their content is.

Contributes to issue CURA-7024.
2020-02-04 15:46:06 +01:00
Ghostkeeper
4307942544
Also remove instance containers referred to by extruder stacks
Contributes to issue CURA-7024.
2020-02-04 15:33:06 +01:00
Ghostkeeper
b549d20ec5
Document which stack layer is which container type
Contributes to issue CURA-7024.
2020-02-04 15:17:31 +01:00
Ghostkeeper
ccc295e2bc
Use sets for folder names from the start
We use a set here because we want to remove the current version from it later on. However if we change the variable to contain a set instead of a list, MyPy will start complaining that we change the type.

Contributes to issue CURA-7024.
2020-02-04 14:20:08 +01:00
Ghostkeeper
f38dc82ac8
Remove hidden stacks and their dependencies
This searches for stacks that are hidden and removes them, and also removes any extruder stacks that depended on those hidden global stacks and any user and quality changes profiles referred to by those removed stacks.

Contributes to issue CURA-7024.
2020-02-04 14:12:57 +01:00
Ghostkeeper
bb73831889
Cura directory may be empty
Contributes to issue CURA-7024.
2020-02-04 14:11:41 +01:00
Ghostkeeper
94e97aff37
Add a function that only gets called when upgrading from version 4.4
Contributes to issue CURA-7024.
2020-02-04 13:02:07 +01:00
Ghostkeeper
a3c5435a1d
Remove support_tree_wall_thickness
This setting will not be automatically translated to support_wall_thickness if it's overwritten, because that would require knowing the line width and we don't know that here. So it's hard to do.

Contributes to issue CURA-7077.
2019-12-23 16:22:17 +01:00
Ghostkeeper
50f64ca696
Merge support_tree_wall_count into support_wall_count
So now the two settings are used as one.

Contributes to issue CURA-7077.
2019-12-23 16:22:17 +01:00
Ghostkeeper
dbda415bba
Make merged settings extensible
This way it's:
- documented at the top of the file to make it easier to find all the changes, and
- easier to extend the list of merged settings.

Contributes to issue CURA-7077.
2019-12-23 16:22:16 +01:00
Ghostkeeper
824dd59e76
Code style: Spaces around binary operators 2019-12-23 16:22:16 +01:00
Ghostkeeper
71a10a262a
Move documentation nearer to code it applies to
Contributes to issue CURA-6522.
2019-12-23 16:22:16 +01:00
Nino van Hooff
8aae5f7563 Fix: extra ConfigParsaer arg added to wrong call
CURA-6522
2019-12-10 16:33:47 +01:00
Nino van Hooff
e2db4e873d Add paramteter to Config Parser constructor to prevent comments in
Gcode to be remnoved by upgrade, as in CURA-6994

CURA-6522
2019-12-04 14:28:30 +01:00
Nino van Hooff
88b3a2506d Version Upgrade 44 to 45
Includes test for changes made in CURA-6522

CURA-6522
2019-11-01 09:58:47 +01:00