mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3] send dialog results over channels
This commit is contained in:
@@ -53,7 +53,7 @@ func newOpenFileDialogImpl(d *OpenFileDialogStruct) *linuxOpenFileDialog {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *linuxOpenFileDialog) show() ([]string, error) {
|
||||
func (m *linuxOpenFileDialog) show() (chan string, error) {
|
||||
return runOpenFileDialog(m.dialog)
|
||||
}
|
||||
|
||||
@@ -67,6 +67,6 @@ func newSaveFileDialogImpl(d *SaveFileDialogStruct) *linuxSaveFileDialog {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *linuxSaveFileDialog) show() (string, error) {
|
||||
func (m *linuxSaveFileDialog) show() (chan string, error) {
|
||||
return runSaveFileDialog(m.dialog)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user