SVN: UX improvements #136
@ -247,6 +247,7 @@ class SVN_repository(PropertyGroup):
|
|||||||
@property
|
@property
|
||||||
def is_valid_svn(self):
|
def is_valid_svn(self):
|
||||||
dir_path = Path(self.directory)
|
dir_path = Path(self.directory)
|
||||||
|
# TODO: This property is checked pretty often, so we run `svn info` pretty often. Might not be a big deal, but maybe it's a bit overkill?
|
||||||
root_dir, base_url = get_svn_info(self.directory)
|
root_dir, base_url = get_svn_info(self.directory)
|
||||||
return (
|
return (
|
||||||
dir_path.exists() and
|
dir_path.exists() and
|
||||||
|
@ -125,9 +125,11 @@ def draw_repo_list(self, context, draw_files=True, draw_log=True) -> None:
|
|||||||
repo_col = layout.column()
|
repo_col = layout.column()
|
||||||
split = repo_col.row().split()
|
split = repo_col.row().split()
|
||||||
split.row().label(text="SVN Repositories:")
|
split.row().label(text="SVN Repositories:")
|
||||||
# row = split.row()
|
|
||||||
# row.alignment = 'RIGHT'
|
# Secret debug toggle (invisible, to the right of the SVN Repositories label.)
|
||||||
# row.prop(self, 'debug_mode')
|
row = split.row()
|
||||||
|
row.alignment = 'RIGHT'
|
||||||
|
row.prop(self, 'debug_mode', text="", icon='BLANK1', emboss=False)
|
||||||
|
|
||||||
repo_col.enabled = not auth_in_progress
|
repo_col.enabled = not auth_in_progress
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user