develop #1

Merged
itdominator merged 14 commits from develop into master 2022-01-30 00:22:36 +00:00
3 changed files with 6 additions and 7 deletions
Showing only changes of commit a380c01573 - Show all commits

View File

@ -11,10 +11,7 @@ class Path:
return os.path.expanduser("~") + self.subpath return os.path.expanduser("~") + self.subpath
def get_path(self): def get_path(self):
if self.path: return f"/{'/'.join(self.path)}" if self.path else f"/{''.join(self.path)}"
return f"/{'/'.join(self.path)}"
else:
return f"/{''.join(self.path)}"
def get_path_list(self): def get_path_list(self):
return self.path return self.path
@ -24,7 +21,7 @@ class Path:
self.load_directory() self.load_directory()
def pop_from_path(self): def pop_from_path(self):
if len(self.path) > 1: try:
self.path.pop() self.path.pop()
if not self.go_past_home: if not self.go_past_home:
@ -32,6 +29,8 @@ class Path:
self.set_to_home() self.set_to_home()
self.load_directory() self.load_directory()
except Exception as e:
pass
def set_path(self, path): def set_path(self, path):
if path == self.get_path(): if path == self.get_path():

View File

@ -199,7 +199,7 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
def get_current_sub_path(self): def get_current_sub_path(self):
path = self.get_path() path = self.get_path()
home = self.get_home() + "/" home = f"{self.get_home()}/"
return path.replace(home, "") return path.replace(home, "")
def get_end_of_path(self): def get_end_of_path(self):

View File

@ -59,7 +59,7 @@ class Settings:
subpath = settings["base_of_home"] subpath = settings["base_of_home"]
HIDE_HIDDEN_FILES = True if settings["hide_hidden_files"] == "true" else False HIDE_HIDDEN_FILES = True if settings["hide_hidden_files"] == "true" else False
FFMPG_THUMBNLR = FFMPG_THUMBNLR if settings["thumbnailer_path"] == "" else settings["thumbnailer_path"] FFMPG_THUMBNLR = FFMPG_THUMBNLR if settings["thumbnailer_path"] == "" else settings["thumbnailer_path"]
go_past_home = True if settings["go_past_home"] == "true" else False go_past_home = True if settings["go_past_home"] == "" else settings["go_past_home"]
lock_folder = True if settings["lock_folder"] == "true" else False lock_folder = True if settings["lock_folder"] == "true" else False
locked_folders = settings["locked_folders"].split("::::") locked_folders = settings["locked_folders"].split("::::")
mplayer_options = settings["mplayer_options"].split() mplayer_options = settings["mplayer_options"].split()