clear bottom page when an invalid URL is entered outside the current repository
This commit is contained in:
parent
ebdb29493f
commit
1c3efc3fbb
@ -99,8 +99,10 @@ class MainWindow(Gtk.Window):
|
|||||||
self.__refresh_directory_buttons(url)
|
self.__refresh_directory_buttons(url)
|
||||||
self.__refresh_directory_contents(url)
|
self.__refresh_directory_contents(url)
|
||||||
else:
|
else:
|
||||||
# TODO: invalidate bottom pane
|
for btn in self.directory_buttons:
|
||||||
pass
|
btn.destroy()
|
||||||
|
self.directory_buttons = []
|
||||||
|
self.contents_model.clear()
|
||||||
|
|
||||||
def __refresh_repo_root(self, url):
|
def __refresh_repo_root(self, url):
|
||||||
if (self.repo_root is not None and
|
if (self.repo_root is not None and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user