fix: correctly convert MessageBoxType (#19349)

This commit is contained in:
Shelley Vohr 2019-07-22 08:19:24 -07:00 коммит произвёл GitHub
Родитель 526f9d442d
Коммит 0490189531
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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