SVN: UX improvements #136

Merged
Demeter Dzadik merged 15 commits from Mets/blender-studio-pipeline:svn_ux_improvements into main 2023-08-01 15:39:18 +02:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 84bfa34620 - Show all commits

View File

@ -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

View File

@ -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