mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Fix code style and typing
This commit is contained in:
parent
07269e4988
commit
f2e518da6b
3 changed files with 7 additions and 4 deletions
|
@ -7,10 +7,12 @@ import cura.CuraApplication # Imported this way to prevent circular references.
|
|||
from cura.Machines.ContainerTree import ContainerTree
|
||||
from cura.Machines.Models.QualityProfilesDropDownMenuModel import QualityProfilesDropDownMenuModel
|
||||
|
||||
|
||||
## This model is used for the custom profile items in the profile drop down
|
||||
# menu.
|
||||
class CustomQualityProfilesDropDownMenuModel(QualityProfilesDropDownMenuModel):
|
||||
def _update(self):
|
||||
|
||||
def _update(self) -> None:
|
||||
Logger.log("d", "Updating {model_class_name}.".format(model_class_name = self.__class__.__name__))
|
||||
|
||||
active_global_stack = cura.CuraApplication.CuraApplication.getInstance().getMachineManager().activeMachine
|
||||
|
@ -31,4 +33,4 @@ class CustomQualityProfilesDropDownMenuModel(QualityProfilesDropDownMenuModel):
|
|||
|
||||
item_list.append(item)
|
||||
|
||||
self.setItems(item_list)
|
||||
self.setItems(item_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue