mirror of
https://github.com/aclist/dztui.git
synced 2026-11-08 02:50:46 +01:00
feat: custom symlink creation in thread
This commit is contained in:
1 parent
a8b7ea5008
commit
e1cb682e74
8 files changed
+273
-130
No files matched your search
@@ -54,7 +54,12 @@ class FolderPicker(Gtk.FileChooserDialog):
|
||||
return None
|
||||
if res == Gtk.ResponseType.OK:
|
||||
folder = self.get_current_folder()
|
||||
if folder is not None:
|
||||
self.destroy()
|
||||
return Path(folder)
|
||||
if folder is None:
|
||||
try:
|
||||
folder = Path.from_uri(self.get_uri())
|
||||
except Exception:
|
||||
# FIXME
|
||||
return Path("/")
|
||||
self.destroy()
|
||||
return Path(folder)
|
||||
return None
|
||||
Reference in new issue
Block a user