SVN: Checkout, Multi-Repo, Optimizations & Clean-up #104
@ -97,7 +97,7 @@ class SVN_addon_preferences(AddonPreferences):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def active_repo(self) -> SVN_repository:
|
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]
|
return self.repositories[self.active_repo_idx]
|
||||||
|
|
||||||
debug_mode: BoolProperty(
|
debug_mode: BoolProperty(
|
||||||
|
@ -207,14 +207,13 @@ def draw_prefs_repos(self, context) -> None:
|
|||||||
return
|
return
|
||||||
if self.active_repo_idx-1 > len(self.repositories):
|
if self.active_repo_idx-1 > len(self.repositories):
|
||||||
return
|
return
|
||||||
active_repo = self.repositories[self.active_repo_idx]
|
if not self.active_repo:
|
||||||
if not active_repo:
|
|
||||||
return
|
return
|
||||||
|
|
||||||
repo_col.prop(active_repo, 'display_name', icon='FILE_TEXT')
|
repo_col.prop(self.active_repo, 'display_name', icon='FILE_TEXT')
|
||||||
repo_col.prop(active_repo, 'url', icon='URL')
|
repo_col.prop(self.active_repo, 'url', icon='URL')
|
||||||
repo_col.prop(active_repo, 'username', icon='USER')
|
repo_col.prop(self.active_repo, 'username', icon='USER')
|
||||||
repo_col.prop(active_repo, 'password', icon='LOCKED')
|
repo_col.prop(self.active_repo, 'password', icon='LOCKED')
|
||||||
|
|
||||||
draw_process_info(context, layout.row())
|
draw_process_info(context, layout.row())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user