Small fixes

This commit is contained in:
2021-11-30 00:21:50 -06:00
parent f5d2fc86f1
commit f497a8a05f
5 changed files with 25 additions and 16 deletions

View File

@@ -21,13 +21,14 @@ class Path:
self.load_directory()
def pop_from_path(self):
self.path.pop()
if len(self.path) > 1:
self.path.pop()
if not self.go_past_home:
if self.get_home() not in self.get_path():
self.set_to_home()
if not self.go_past_home:
if self.get_home() not in self.get_path():
self.set_to_home()
self.load_directory()
self.load_directory()
def set_path(self, path):
if path == self.get_path():