Jaime van Kessel
fb4ce43f0c
Prevent crashes when a variant could not be found
...
This should not happen, but we've seen some cases where it would cause a crash, usually
when a previous upgrade did something a bit weird (in this specific case; a printer
with an empty variant, whereas it should have a variant).
Since any change that the user will make will ensure that the variant is no longer empty (eg;
any selection of a variant will mean it's no longer empty) and that there is no way back,
it should be pretty safe to ignore the situation as it will resolve itself eventually
CURA-6992
2019-11-21 12:54:33 +01:00
Lipu Fei
d99386cf2e
Fix recommended mode
...
CURA-6706
2019-10-07 12:58:41 +02:00
Lipu Fei
c42feae11c
Make intents work on quality management page
...
CURA-6706
2019-10-07 09:22:47 +02:00
Lipu Fei
1967dd8404
Fix code style
...
CURA-6840
2019-10-07 08:12:54 +02:00
Lipu Fei
4579b06f6d
Fix typing
2019-10-04 15:10:42 +02:00
Nino van Hooff
8d223c01d4
Add type annotation for layer_heights_added
...
CURA-6840
2019-10-04 14:07:57 +02:00
Nino van Hooff
88e0a57374
Fix typing and deduplicate fetch_layer_height
...
CURA-6840
2019-10-04 13:25:58 +02:00
Nino van Hooff
68f334e141
Fix: Consider all active extruder intent profiles for display.
...
Remove the notion of a singular 'active' extruder from the code.
Visibility of intent profiles should consider all enabled extruders.
This fix makes sure that it doesn't matter in what order materials are
loaded, the available intent profiles will be the same.
CURA-6840
2019-10-04 11:21:25 +02:00
Jaime van Kessel
3e474c1107
Ensure that enabling & disabling an extruder gets handled correctly
...
CURA-6775
2019-09-19 14:54:58 +02:00
Jaime van Kessel
884a3ea819
Fix selection for intents if only one of the extruders has an intent
...
CURA-6598
2019-09-19 09:54:47 +02:00
Ghostkeeper
2cca95384d
Don't look for quality group for empty material
...
Just don't add it to the list of available intents then.
Contributes to issue CURA-6775.
2019-09-13 16:09:02 +02:00
Ghostkeeper
0b92c3f3df
Use .container property rather than deprecated getContainer() function
...
Contributes to issue CURA-6600.
2019-09-10 14:56:16 +02:00
Jaime van Kessel
b00b8c8c58
Merge branch 'feature_intent_container_tree' of github.com:Ultimaker/Cura into feature_intent_interface
2019-08-29 16:28:26 +02:00
Jaime van Kessel
de1065f0a3
Prevent crash if extruder is not yet set
...
CURA-6598
2019-08-29 14:04:05 +02:00
Jaime van Kessel
ba0c16d968
Update intents model to use container tree
...
CURA-6598
2019-08-29 13:53:23 +02:00
Jaime van Kessel
5401a4db15
Ensure that each intent gets it's own bar in recommended
...
CURA-6598
2019-08-29 11:53:19 +02:00
Jaime van Kessel
24d6d5b102
Update intent models to also house nested qualities
...
CURA-6598
2019-08-29 11:45:19 +02:00
Ghostkeeper
c9191beb61
Fix updating intents list when printer changes
...
Contributes to issue CURA-6600.
2019-08-28 11:11:13 +02:00
Ghostkeeper
d4cd5a7ea5
Add convenience function to get quality groups for current printer
...
This is used very often all over the code.
Contributes to issue CURA-6600.
2019-08-15 17:01:22 +02:00
Ghostkeeper
ed19e9e15c
Use ContainerTree to find quality groups
...
Contributes to issue CURA-6600.
2019-08-15 17:01:22 +02:00
Lipu Fei
4e0b9d7b78
Fix typing
...
CURA-6597
2019-07-09 13:02:01 +02:00
Lipu Fei
8863516aa4
Rename function name and fix tests
...
CURA-6597
2019-07-09 12:53:44 +02:00
Lipu Fei
659a276f65
Rename signal
...
CURA-6597
2019-07-09 11:29:27 +02:00
Ghostkeeper
e2fd90506a
Include intent profiles from the default intents
...
If we have the default intent category, list all quality types available.
Contributes to issue CURA-6597.
2019-07-09 10:56:21 +02:00
Ghostkeeper
86750c0446
Don't continue after returning empty list
...
Oops. Shouldn't have pushed...
Contributes to issue CURA-6597.
2019-07-09 10:54:47 +02:00
Ghostkeeper
07c5c4d9f0
Return empty model if there is no printer added yet
...
Contributes to issue CURA-6597.
2019-07-09 10:26:49 +02:00
Ghostkeeper
45cb34c3e4
Refresh list of intents upon changing category
...
The category is changed after constructing by the QML code in order to set its property.
This is now updating twice: Once for the default category and once for the final one set by QML. This is a bit inefficient. But make it work before optimising it!
Contributes to issue CURA-6597.
2019-07-05 11:19:16 +02:00
Ghostkeeper
6ba70f3425
Rewrite IntentModel to return quality types rather than actual profiles
...
We don't want the profiles, because that'd be specific to one extruder. We want the quality types and intent categories as tuples again.
Contributes to issue CURA-6597.
2019-07-04 11:04:44 +02:00
Ghostkeeper
3f29bce263
List intents per category
...
This is the naive one. We want to list the default intents multiple times, once for every quality level.
Contributes to issue CURA-6597.
2019-07-03 16:51:47 +02:00
Jaime van Kessel
35ec70a3cf
Add a selector for the intent profile
...
CURA-6534
2019-06-05 11:13:32 +02:00
Jaime van Kessel
2d8c19203e
Expose intent model to QML
...
CURA-6534
2019-06-05 09:57:42 +02:00
Jaime van Kessel
2e7f8b066a
Ensure that the intent model gets populated
...
CURA-6534
2019-06-04 17:32:11 +02:00
Jaime van Kessel
266cf52cbc
Add stub for the IntentModel
...
CURA-6534
2019-06-04 17:24:34 +02:00