feat: custom symlink creation in thread

This commit is contained in:
aclist committed 2026-06-13 01:50:34 +09:00
1 parent a8b7ea5008
commit e1cb682e74
8 files changed
+273 -130

No files matched your search

+8 -3
View File
@@ -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