Skip to content

Commit

Permalink
electron - fix deprecation warning (accessibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 17, 2019
1 parent 753de26 commit 849034f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/code/electron-main/window.ts
Expand Up @@ -561,7 +561,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
autoDetectHighContrast = false;
}
windowConfiguration.highContrast = isWindows && autoDetectHighContrast && systemPreferences.isInvertedColorScheme();
windowConfiguration.accessibilitySupport = app.isAccessibilitySupportEnabled();
windowConfiguration.accessibilitySupport = app.accessibilitySupportEnabled;

// Title style related
windowConfiguration.maximized = this._win.isMaximized();
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/launch/electron-main/launchService.ts
Expand Up @@ -268,7 +268,7 @@ export class LaunchService implements ILaunchService {
mainPID: process.pid,
mainArguments: process.argv.slice(1),
windows,
screenReader: app.isAccessibilitySupportEnabled(),
screenReader: !!app.accessibilitySupportEnabled,
gpuFeatureStatus: app.getGPUFeatureStatus()
});
}
Expand Down

0 comments on commit 849034f

Please sign in to comment.