зеркало из https://github.com/electron/electron.git
fix: incorrect `skipTransformProcessType` option parsing in `win.setVisibleOnAllWorkspaces()` (#32364)
This commit is contained in:
Родитель
6d8a858897
Коммит
cb2c1f888e
|
@ -854,10 +854,10 @@ void BaseWindow::SetVisibleOnAllWorkspaces(bool visible,
|
|||
gin_helper::Dictionary options;
|
||||
bool visibleOnFullScreen = false;
|
||||
bool skipTransformProcessType = false;
|
||||
args->GetNext(&options) &&
|
||||
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
|
||||
args->GetNext(&options) &&
|
||||
options.Get("skipTransformProcessType", &skipTransformProcessType);
|
||||
if (args->GetNext(&options)) {
|
||||
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
|
||||
options.Get("skipTransformProcessType", &skipTransformProcessType);
|
||||
}
|
||||
return window_->SetVisibleOnAllWorkspaces(visible, visibleOnFullScreen,
|
||||
skipTransformProcessType);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче