mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-12 12:52:53 -05:00
feat(tracker/gioui): show file explorer error messages to user
This commit is contained in:
parent
a09b52a912
commit
55f9c36bd5
@ -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)
|
||||
}
|
||||
}
|
||||
}}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user