clear bottom page when an invalid URL is entered outside the current repository

This commit is contained in:
josh committed 2016-06-27 14:46:07 -04:00
1 parent ebdb29493f
commit 1c3efc3fbb
1 file changed
+4 -2
+4 -2
View File
@@ -99,8 +99,10 @@ class MainWindow(Gtk.Window):
self.__refresh_directory_buttons(url)
self.__refresh_directory_contents(url)
else:
# TODO: invalidate bottom pane
pass
for btn in self.directory_buttons:
btn.destroy()
self.directory_buttons = []
self.contents_model.clear()
def __refresh_repo_root(self, url):
if (self.repo_root is not None and