mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Added unit test for settingvisibility presets
CURA-5734
This commit is contained in:
parent
7e7afa7c06
commit
edb5de9954
5 changed files with 113 additions and 13 deletions
|
@ -54,8 +54,8 @@ class SettingVisibilityPreset(QObject):
|
|||
self.onWeightChanged.emit()
|
||||
|
||||
def setSettings(self, settings: List[str]) -> None:
|
||||
if settings != self._settings:
|
||||
self._settings = settings
|
||||
if set(settings) != set(self._settings):
|
||||
self._settings = list(set(settings)) # filter out non unique
|
||||
self.onSettingsChanged.emit()
|
||||
|
||||
def loadFromFile(self, file_path: str) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue