mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
allow action to be overridden by caller
This commit is contained in:
@@ -223,7 +223,7 @@ void freeFileFilterArray(GtkFileFilter** filters) {
|
||||
|
||||
int opendialog(gpointer data) {
|
||||
struct OpenFileDialogOptions *options = data;
|
||||
GtkWidget *dlgWidget = gtk_file_chooser_dialog_new(options->title, options->webview, GTK_FILE_CHOOSER_ACTION_OPEN,
|
||||
GtkWidget *dlgWidget = gtk_file_chooser_dialog_new(options->title, options->webview, options->action,
|
||||
"_Cancel", GTK_RESPONSE_CANCEL,
|
||||
"_Open", GTK_RESPONSE_ACCEPT,
|
||||
NULL);
|
||||
|
||||
Reference in New Issue
Block a user