fix: open native directory picker for new instances

This commit is contained in:
QiuSW
2026-07-22 16:06:39 +08:00
parent 6f08c9c9d0
commit dbbb5c0e98
12 changed files with 289 additions and 14 deletions
@@ -0,0 +1,9 @@
package files
import "context"
// DirectoryPicker opens a platform directory chooser. The implementation must
// block only in its own goroutine; UI callers receive the result asynchronously.
type DirectoryPicker interface {
ChooseDirectory(context.Context) (string, error)
}