@@ -49,7 +49,7 @@ type FilePicker struct {
49var _ Dialog = (*FilePicker)(nil)
49var _ Dialog = (*FilePicker)(nil)
51// NewFilePicker creates a new [FilePicker] dialog.
51// NewFilePicker creates a new [FilePicker] dialog.
52−func NewFilePicker(com *common.Common) (*FilePicker, Action) {
52+func NewFilePicker(com *common.Common) (*FilePicker, tea.Cmd) {
53 f := new(FilePicker)
53 f := new(FilePicker)
54 f.com = com
54 f.com = com
@@ -98,7 +98,7 @@ func NewFilePicker(com *common.Common) (*FilePicker, Action) {
101− return f, ActionCmd{f.fp.Init()}
101+ return f, f.fp.Init()
104// SetImageCapabilities sets the image capabilities for the [FilePicker].
104// SetImageCapabilities sets the image capabilities for the [FilePicker].
@@ -156,11 +156,6 @@ func (f *FilePicker) ID() string {
156 return FilePickerID
156 return FilePickerID
159−// Init implements the [Dialog] interface.
160−func (f *FilePicker) Init() tea.Cmd {
164// HandleMsg updates the [FilePicker] dialog based on the given message.
159// HandleMsg updates the [FilePicker] dialog based on the given message.
165func (f *FilePicker) HandleMsg(msg tea.Msg) Action {
160func (f *FilePicker) HandleMsg(msg tea.Msg) Action {
166 var cmds []tea.Cmd
161 var cmds []tea.Cmd