feat(tracker/gioui): show file explorer error messages to user

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-09-27 21:06:26 +03:00
parent a09b52a912
commit 55f9c36bd5

View File

@ -329,6 +329,9 @@ func (t *Tracker) explorerChooseFile(success func(io.ReadCloser), extensions ...
success(file)
} else {
t.Cancel().Do()
if err != explorer.ErrUserDecline {
t.Alerts().Add(err.Error(), tracker.Error)
}
}
}}
}()
@ -344,6 +347,9 @@ func (t *Tracker) explorerCreateFile(success func(io.WriteCloser), filename stri
success(file)
} else {
t.Cancel().Do()
if err != explorer.ErrUserDecline {
t.Alerts().Add(err.Error(), tracker.Error)
}
}
}}
}()