mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fixed project change validation
This commit is contained in:
parent
bcdc773522
commit
cde534d106
1 changed files with 1 additions and 6 deletions
|
|
@ -610,12 +610,7 @@ class ProjectListWidget(QtWidgets.QWidget):
|
|||
self.select_project(self.current_project)
|
||||
|
||||
def validate_context_change(self):
|
||||
# TODO add check if project can be changed (is modified)
|
||||
for item in self._parent.input_fields:
|
||||
is_modified = item.child_modified
|
||||
if is_modified:
|
||||
return False
|
||||
return True
|
||||
return not self._parent.entity.has_unsaved_changes
|
||||
|
||||
def project_name(self):
|
||||
if self.current_project == self.default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue