@@ -49,7 +49,7 @@ type FilePicker struct {
4949var _ Dialog = (*FilePicker)(nil)
5050
5151// NewFilePicker creates a new [FilePicker] dialog.
52−func NewFilePicker(com *common.Common) (*FilePicker, Action) {
52+func NewFilePicker(com *common.Common) (*FilePicker, tea.Cmd) {
5353 f := new(FilePicker)
5454 f.com = com
5555
@@ -98,7 +98,7 @@ func NewFilePicker(com *common.Common) (*FilePicker, Action) {
9898
9999 f.fp = fp
100100
101− return f, ActionCmd{f.fp.Init()}
101+ return f, f.fp.Init()
102102}
103103
104104// SetImageCapabilities sets the image capabilities for the [FilePicker].
@@ -156,11 +156,6 @@ func (f *FilePicker) ID() string {
156156 return FilePickerID
157157}
158158
159−// Init implements the [Dialog] interface.
160−func (f *FilePicker) Init() tea.Cmd {
161− return f.fp.Init()
162−}
163−
164159// HandleMsg updates the [FilePicker] dialog based on the given message.
165160func (f *FilePicker) HandleMsg(msg tea.Msg) Action {
166161 var cmds []tea.Cmd