зеркало из https://github.com/electron/electron.git
Remove trailing whitespaces and cleanup the code logic
This commit is contained in:
Родитель
ec53e49fad
Коммит
09796587b4
|
@ -137,16 +137,14 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
|
||||||
if (options.Get(options::kAlwaysOnTop, &top) && top) {
|
if (options.Get(options::kAlwaysOnTop, &top) && top) {
|
||||||
SetAlwaysOnTop(true);
|
SetAlwaysOnTop(true);
|
||||||
}
|
}
|
||||||
// Disable fullscreen button if 'fullscreen' is specified to false.
|
|
||||||
bool fullscreenable = true;
|
bool fullscreenable = true;
|
||||||
bool fullscreen = false;
|
bool fullscreen = false;
|
||||||
if (options.Get(options::kFullscreen, &fullscreen) && !fullscreen)
|
if (options.Get(options::kFullscreen, &fullscreen) && !fullscreen) {
|
||||||
|
// Disable fullscreen button if 'fullscreen' is specified to false.
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
fullscreenable = false;
|
fullscreenable = false;
|
||||||
// On Windows, we can only enter fullscreen via API
|
|
||||||
// Ensure that setFullscreen(true) is usable by default
|
|
||||||
#if defined(OS_WIN)
|
|
||||||
fullscreenable = true;
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
// Overriden by 'fullscreenable'.
|
// Overriden by 'fullscreenable'.
|
||||||
options.Get(options::kFullScreenable, &fullscreenable);
|
options.Get(options::kFullScreenable, &fullscreenable);
|
||||||
SetFullScreenable(fullscreenable);
|
SetFullScreenable(fullscreenable);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче