зеркало из https://github.com/electron/electron.git
fix: correctly convert MessageBoxType (#19349)
This commit is contained in:
Родитель
526f9d442d
Коммит
0490189531
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче