Fixed move bug from last commit

This commit is contained in:
itdominator 2021-12-26 19:17:10 -06:00
parent 3017fa3308
commit af4eac4c17
1 changed files with 7 additions and 3 deletions

View File

@ -211,10 +211,14 @@ class WindowMixin(TabMixin):
store, tab_label = self.get_store_and_label_from_notebook(notebook, f"{wid}|{tid}") store, tab_label = self.get_store_and_label_from_notebook(notebook, f"{wid}|{tid}")
view = self.get_fm_window(wid).get_view_by_id(tid) view = self.get_fm_window(wid).get_view_by_id(tid)
uris = data.get_uris() _uris = data.get_uris()
dest = f"file://{view.get_current_directory()}" dest = f"{view.get_current_directory()}"
if len(_uris) > 0:
uris = []
for uri in _uris:
uris.append(uri.split("file://")[1])
if len(uris) > 0:
self.move_files(uris, dest) self.move_files(uris, dest)