5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 06:09:56 +08:00
This commit is contained in:
Lea Anthony 2020-05-09 05:55:54 +10:00
parent f1d16a03ec
commit 131fd973cd

View File

@ -1939,7 +1939,7 @@ struct webview_priv
webview_dialog(w, WEBVIEW_DIALOG_TYPE_OPEN, WEBVIEW_DIALOG_FLAG_FILE, "", "",
filename, 255);
if (strlen(filename))
if (strlen(filename) > 0)
{
[listener chooseFilename:[NSString stringWithUTF8String:filename]];
}