mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix crashed entity creation handling
This commit is contained in:
parent
c7c324c4bb
commit
1574a24953
1 changed files with 6 additions and 1 deletions
|
|
@ -715,7 +715,12 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
self._outdated_version_label,
|
||||
self._require_restart_label,
|
||||
}
|
||||
if self.entity.require_restart:
|
||||
if self.is_modifying_defaults or self.entity is None:
|
||||
require_restart = False
|
||||
else:
|
||||
require_restart = self.entity.require_restart
|
||||
|
||||
if require_restart:
|
||||
visible_label = self._require_restart_label
|
||||
elif self._is_loaded_version_outdated:
|
||||
visible_label = self._outdated_version_label
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue