mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Move VariantType to VariantType.py
Less circular dependencies for imports.
This commit is contained in:
parent
847fc33796
commit
a303f394c8
7 changed files with 24 additions and 15 deletions
|
@ -8,6 +8,8 @@ from UM.Logger import Logger
|
|||
from UM.Qt.ListModel import ListModel
|
||||
from UM.Util import parseBool
|
||||
|
||||
from cura.Machines.VariantType import VariantType
|
||||
|
||||
|
||||
class NozzleModel(ListModel):
|
||||
IdRole = Qt.UserRole + 1
|
||||
|
@ -43,7 +45,6 @@ class NozzleModel(ListModel):
|
|||
self.setItems([])
|
||||
return
|
||||
|
||||
from cura.Machines.VariantManager import VariantType
|
||||
variant_node_dict = self._variant_manager.getVariantNodes(global_stack, VariantType.NOZZLE)
|
||||
if not variant_node_dict:
|
||||
self.setItems([])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue