mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Clean up more code
This fixes some typing and moves a property to protected, as it should be
This commit is contained in:
parent
c15f8aa693
commit
7310a677ce
5 changed files with 13 additions and 17 deletions
|
@ -58,7 +58,7 @@ class SettingVisibilityPresetsModel(ListModel):
|
|||
break
|
||||
return result
|
||||
|
||||
def _populate(self):
|
||||
def _populate(self) -> None:
|
||||
from cura.CuraApplication import CuraApplication
|
||||
items = []
|
||||
for file_path in Resources.getAllResourcesOfType(CuraApplication.ResourceTypes.SettingVisibilityPreset):
|
||||
|
@ -147,7 +147,7 @@ class SettingVisibilityPresetsModel(ListModel):
|
|||
def activePreset(self) -> str:
|
||||
return self._active_preset_item["id"]
|
||||
|
||||
def _onPreferencesChanged(self, name: str):
|
||||
def _onPreferencesChanged(self, name: str) -> None:
|
||||
if name != "general/visible_settings":
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue