Logic and bug fix from last commit

This commit is contained in:
itdominator 2021-12-25 03:20:39 -06:00
parent 9a0d56bd8c
commit dec28e31cf
2 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@ class WidgetFileActionMixin:
watcher = None
return
dir_watcher = Gio.File.new_for_path(cur_dir)
dir_watcher = Gio.File.new_for_path(cur_dir) \
.monitor_directory(Gio.FileMonitorFlags.WATCH_MOVES, Gio.Cancellable())
wid = view.get_wid()

View File

@ -179,10 +179,14 @@ class WindowMixin(TabMixin):
fileName = store[item][1]
dir = view.get_current_directory()
file = f"{dir}/{fileName}"
file = ""
if fileName.endswith("/"):
file = f"{dir}/{fileName}"
else:
file = f"{dir}/{fileName}/"
if isdir(f"{file}/"):
view.set_path(f"{file}/")
if isdir(file):
view.set_path(file)
self.update_view(tab_label, view, store, wid, tid)
else:
self.open_files()