From 50a4b665477e87474c056f2c58ac5cf5ccaf83ec Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 24 Jun 2016 16:53:02 -0400 Subject: [PATCH] break up __refresh_contents() --- simplesvnbrowser/main_window.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/simplesvnbrowser/main_window.py b/simplesvnbrowser/main_window.py index 9548756..118f838 100644 --- a/simplesvnbrowser/main_window.py +++ b/simplesvnbrowser/main_window.py @@ -70,7 +70,8 @@ class MainWindow(Gtk.Window): def __refresh(self, url): self.__refresh_repo_root(url) if self.repo_root is not None: - self.__refresh_contents(url) + self.__refresh_directory_buttons(url) + self.__refresh_directory_contents(url) else: # TODO: invalidate bottom pane pass @@ -89,8 +90,7 @@ class MainWindow(Gtk.Window): else: self.repo_root = None - def __refresh_contents(self, url): - stdout, _ = run_svn(["ls", url]) + def __refresh_directory_buttons(self, url): if url == self.repo_root: path_in_repo = "" else: @@ -120,6 +120,9 @@ class MainWindow(Gtk.Window): else: btn.get_child().set_label(btn.caption) self.directory_vbox.show_all() + + def __refresh_directory_contents(self, url): + stdout, _ = run_svn(["ls", url]) # TODO: finish def __go(self, url):