mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Add dataclass for ActiveQuality. Move some logic out of MachineManager into ActiveQuality.
CURA-9793
This commit is contained in:
parent
f297909a82
commit
8dcccd941b
3 changed files with 49 additions and 37 deletions
|
@ -1,6 +1,7 @@
|
|||
# Copyright (c) 2022 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
import json
|
||||
from dataclasses import asdict
|
||||
from typing import cast, List, Dict
|
||||
|
||||
from Charon.VirtualFile import VirtualFile # To open UFP files.
|
||||
|
@ -227,7 +228,7 @@ class UFPWriter(MeshWriter):
|
|||
},
|
||||
"intent": machine_manager.activeIntentCategory,
|
||||
"quality": machine_manager.activeQualityOrQualityChangesName,
|
||||
"quality_display_name": machine_manager.activeQualityDisplayNameMap,
|
||||
"quality_display_name": asdict(machine_manager.activeQualityDisplayNameMap),
|
||||
}
|
||||
|
||||
global_stack = cast(GlobalStack, Application.getInstance().getGlobalContainerStack())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue