SVN: Checkout, Multi-Repo, Optimizations & Clean-up #104

Merged
Demeter Dzadik merged 12 commits from Mets/blender-studio-pipeline:SVN-improvements into main 2023-07-10 16:49:03 +02:00
2 changed files with 6 additions and 7 deletions
Showing only changes of commit 7690627772 - Show all commits

View File

@ -97,7 +97,7 @@ class SVN_addon_preferences(AddonPreferences):
@property
def active_repo(self) -> SVN_repository:
if len(self.repositories) > 0:
if 0 < len(self.repositories) < self.active_repo_idx-1:
return self.repositories[self.active_repo_idx]
debug_mode: BoolProperty(

View File

@ -207,14 +207,13 @@ def draw_prefs_repos(self, context) -> None:
return
if self.active_repo_idx-1 > len(self.repositories):
return
active_repo = self.repositories[self.active_repo_idx]
if not active_repo:
if not self.active_repo:
return
repo_col.prop(active_repo, 'display_name', icon='FILE_TEXT')
repo_col.prop(active_repo, 'url', icon='URL')
repo_col.prop(active_repo, 'username', icon='USER')
repo_col.prop(active_repo, 'password', icon='LOCKED')
repo_col.prop(self.active_repo, 'display_name', icon='FILE_TEXT')
repo_col.prop(self.active_repo, 'url', icon='URL')
repo_col.prop(self.active_repo, 'username', icon='USER')
repo_col.prop(self.active_repo, 'password', icon='LOCKED')
draw_process_info(context, layout.row())