зеркало из https://github.com/electron/electron.git
Changing the Logical Or to Bitwise Or to change from Either to Either Or Both values
This commit is contained in:
Родитель
0b24883649
Коммит
a0867fa7c5
|
@ -145,7 +145,7 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
|
|||
Center();
|
||||
}
|
||||
int min_height = 0, min_width = 0;
|
||||
if (options.Get(switches::kMinHeight, &min_height) ||
|
||||
if (options.Get(switches::kMinHeight, &min_height) |
|
||||
options.Get(switches::kMinWidth, &min_width)) {
|
||||
SetMinimumSize(gfx::Size(min_width, min_height));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче