Simplify can_override conditional

Contributes to CL-1259
This commit is contained in:
Ian Paschal 2019-05-20 15:12:08 +02:00
parent 6dc43f9ed1
commit 2a80a8d0db

View File

@ -12,7 +12,7 @@ class ConfigurationChangeModel(QObject):
super().__init__() super().__init__()
self._type_of_change = type_of_change self._type_of_change = type_of_change
# enum = ["material", "print_core_change"] # enum = ["material", "print_core_change"]
self._can_override = False if self._type_of_change in BLOCKING_CHANGE_TYPES else True self._can_override = self._type_of_change not in BLOCKING_CHANGE_TYPES
self._index = index self._index = index
self._target_name = target_name self._target_name = target_name
self._origin_name = origin_name self._origin_name = origin_name