5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:03:01 +08:00

allow action to be overridden by caller

This commit is contained in:
Travis McLane 2022-01-21 10:16:20 -06:00
parent 1e5f8e03cb
commit b7647b3992

View File

@ -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);