Logic and bug fix from last commit
This commit is contained in:
parent
9a0d56bd8c
commit
dec28e31cf
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user