Add directory selection for saving converted files

Introduce logic and UI for selecting and persisting a directory to save converted files. Extend existing components with directory selection buttons, message updates, and storage preferences.
This commit is contained in:
2025-06-08 00:18:56 +05:00
parent 394824ce88
commit 6c0abac1c5
4 changed files with 123 additions and 4 deletions

19
internal/utils/path.go Normal file
View File

@@ -0,0 +1,19 @@
package utils
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/storage"
)
func PathToListableURI(path string) (fyne.ListableURI, error) {
if len(path) > 0 {
path = "file://" + path
}
uri, err := storage.ParseURI(path)
if err != nil {
return nil, err
}
return storage.ListerForURI(uri)
}