Support OpenDialog

This commit is contained in:
Lea Anthony
2020-09-26 16:08:55 +10:00
parent bed5619d4e
commit 9b0f58ddf5
6 changed files with 15 additions and 15 deletions

View File

@@ -31,9 +31,9 @@ func (r *Dialog) SelectFile(params ...string) string {
return r.renderer.SelectFile(title, filter)
}
// SelectDirectory prompts the user to select a directory
func (r *Dialog) SelectDirectory() []string {
return r.renderer.SelectDirectory()
// OpenDialog prompts the user to select a directory
func (r *Dialog) OpenDialog() []string {
return r.renderer.OpenDialog()
}
// SelectSaveFile prompts the user to select a file for saving