SVN: Checkout, Multi-Repo, Optimizations & Clean-up #104
@ -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(
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user