break up __refresh_contents()
This commit is contained in:
parent
9c24015f2d
commit
50a4b66547
@ -70,7 +70,8 @@ class MainWindow(Gtk.Window):
|
|||||||
def __refresh(self, url):
|
def __refresh(self, url):
|
||||||
self.__refresh_repo_root(url)
|
self.__refresh_repo_root(url)
|
||||||
if self.repo_root is not None:
|
if self.repo_root is not None:
|
||||||
self.__refresh_contents(url)
|
self.__refresh_directory_buttons(url)
|
||||||
|
self.__refresh_directory_contents(url)
|
||||||
else:
|
else:
|
||||||
# TODO: invalidate bottom pane
|
# TODO: invalidate bottom pane
|
||||||
pass
|
pass
|
||||||
@ -89,8 +90,7 @@ class MainWindow(Gtk.Window):
|
|||||||
else:
|
else:
|
||||||
self.repo_root = None
|
self.repo_root = None
|
||||||
|
|
||||||
def __refresh_contents(self, url):
|
def __refresh_directory_buttons(self, url):
|
||||||
stdout, _ = run_svn(["ls", url])
|
|
||||||
if url == self.repo_root:
|
if url == self.repo_root:
|
||||||
path_in_repo = ""
|
path_in_repo = ""
|
||||||
else:
|
else:
|
||||||
@ -120,6 +120,9 @@ class MainWindow(Gtk.Window):
|
|||||||
else:
|
else:
|
||||||
btn.get_child().set_label(btn.caption)
|
btn.get_child().set_label(btn.caption)
|
||||||
self.directory_vbox.show_all()
|
self.directory_vbox.show_all()
|
||||||
|
|
||||||
|
def __refresh_directory_contents(self, url):
|
||||||
|
stdout, _ = run_svn(["ls", url])
|
||||||
# TODO: finish
|
# TODO: finish
|
||||||
|
|
||||||
def __go(self, url):
|
def __go(self, url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user