mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:50:15 +08:00
allow action
to be overridden by caller
This commit is contained in:
parent
1e5f8e03cb
commit
b7647b3992
@ -223,7 +223,7 @@ void freeFileFilterArray(GtkFileFilter** filters) {
|
|||||||
|
|
||||||
int opendialog(gpointer data) {
|
int opendialog(gpointer data) {
|
||||||
struct OpenFileDialogOptions *options = 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,
|
"_Cancel", GTK_RESPONSE_CANCEL,
|
||||||
"_Open", GTK_RESPONSE_ACCEPT,
|
"_Open", GTK_RESPONSE_ACCEPT,
|
||||||
NULL);
|
NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user