mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[linux] implement OpenDirectoryDialog
This commit is contained in:
parent
b7647b3992
commit
2c2e053bd1
1 changed files with 6 additions and 1 deletions
|
|
@ -38,7 +38,12 @@ func (f *Frontend) OpenMultipleFilesDialog(dialogOptions frontend.OpenDialogOpti
|
|||
}
|
||||
|
||||
func (f *Frontend) OpenDirectoryDialog(dialogOptions frontend.OpenDialogOptions) (string, error) {
|
||||
panic("implement me")
|
||||
f.mainWindow.OpenFileDialog(dialogOptions, 0, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
|
||||
result := <-openFileResults
|
||||
if len(result) == 1 {
|
||||
return result[0], nil
|
||||
}
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (f *Frontend) SaveFileDialog(dialogOptions frontend.SaveDialogOptions) (string, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue