mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Reordered input fields validations
This commit is contained in:
parent
bab05592bc
commit
641d787982
1 changed files with 7 additions and 5 deletions
|
|
@ -337,11 +337,6 @@ class PushToContextController:
|
|||
return product_name
|
||||
|
||||
def _check_submit_validations(self):
|
||||
if self._use_original_name:
|
||||
return True
|
||||
if not self._user_values.is_valid:
|
||||
return False
|
||||
|
||||
if not self._selection_model.get_selected_project_name():
|
||||
return False
|
||||
|
||||
|
|
@ -350,6 +345,13 @@ class PushToContextController:
|
|||
and not self._selection_model.get_selected_folder_id()
|
||||
):
|
||||
return False
|
||||
|
||||
if self._use_original_name:
|
||||
return True
|
||||
|
||||
if not self._user_values.is_valid:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
def _invalidate(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue