on main help sign in
gofumpt
2428334Tai Groot
internal/tui/components/dialogs/filepicker/filepicker.go+2−2
@@ -49,7 +49,7 @@ func NewFilePickerCmp(workingDir string) FilePicker {
49 t := styles.CurrentTheme()
49 t := styles.CurrentTheme()
50 fp := filepicker.New()
50 fp := filepicker.New()
51 fp.AllowedTypes = []string{".jpg", ".jpeg", ".png"}
51 fp.AllowedTypes = []string{".jpg", ".jpeg", ".png"}
52−
52+
53 if workingDir != "" {
53 if workingDir != "" {
54 fp.CurrentDirectory = workingDir
54 fp.CurrentDirectory = workingDir
55 } else {
55 } else {
@@ -60,7 +60,7 @@ func NewFilePickerCmp(workingDir string) FilePicker {
60 fp.CurrentDirectory, _ = os.UserHomeDir()
60 fp.CurrentDirectory, _ = os.UserHomeDir()
61 }
61 }
62 }
62 }
63−
63+
64 fp.ShowPermissions = false
64 fp.ShowPermissions = false
65 fp.ShowSize = false
65 fp.ShowSize = false
66 fp.AutoHeight = false
66 fp.AutoHeight = false