fix: correctly convert MessageBoxType (#19349)
This commit is contained in:
parent
526f9d442d
commit
0490189531
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ bool Converter<electron::MessageBoxSettings>::FromV8(
|
|||
if (!ConvertFromV8(isolate, val, &dict))
|
||||
return false;
|
||||
dict.Get("window", &out->parent_window);
|
||||
dict.Get("type", &type);
|
||||
dict.Get("messageBoxType", &type);
|
||||
out->type = static_cast<electron::MessageBoxType>(type);
|
||||
dict.Get("buttons", &out->buttons);
|
||||
dict.Get("defaultId", &out->default_id);
|
||||
|
|
Loading…
Reference in a new issue