Skip to content

Commit

Permalink
project category widget has ability to retrieve project names
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 8, 2021
1 parent 74b6da9 commit e2f24fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openpype/tools/settings/settings/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,14 @@ def ui_tweaks(self):

self.project_list_widget = project_list_widget

def get_project_names(self):
if (
self.modify_defaults_checkbox
and self.modify_defaults_checkbox.isChecked()
):
return []
return self.project_list_widget.get_project_names()

def on_saved(self, saved_tab_widget):
"""Callback on any tab widget save.
Expand Down

0 comments on commit e2f24fb

Please sign in to comment.