mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
[client-app] Fix benchmark mode
Summary: We weren't passing benchmarkMode through in the default window options, so the worker window (or any other spawned window) would think it wasn't in benchmark mode. Test Plan: Run locally, verify that the worker window thinks it's in benchmark mode Reviewers: halla, spang, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D4427
This commit is contained in:
parent
8b9d98c5e2
commit
92c3d8c608
1 changed files with 6 additions and 5 deletions
|
@ -16,18 +16,19 @@ let winNum = 0;
|
||||||
export default class WindowLauncher {
|
export default class WindowLauncher {
|
||||||
static EMPTY_WINDOW = "emptyWindow"
|
static EMPTY_WINDOW = "emptyWindow"
|
||||||
|
|
||||||
constructor({devMode, safeMode, specMode, resourcePath, configDirPath, onCreatedHotWindow, config}) {
|
constructor({devMode, benchmarkMode, safeMode, specMode, resourcePath, configDirPath, onCreatedHotWindow, config}) {
|
||||||
this.defaultWindowOpts = {
|
this.defaultWindowOpts = {
|
||||||
frame: process.platform !== "darwin",
|
frame: process.platform !== "darwin",
|
||||||
hidden: false,
|
hidden: false,
|
||||||
toolbar: true,
|
toolbar: true,
|
||||||
devMode: devMode,
|
devMode,
|
||||||
safeMode: safeMode,
|
safeMode,
|
||||||
|
benchmarkMode,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
windowType: WindowLauncher.EMPTY_WINDOW,
|
windowType: WindowLauncher.EMPTY_WINDOW,
|
||||||
bootstrapScript: require.resolve("../secondary-window-bootstrap"),
|
bootstrapScript: require.resolve("../secondary-window-bootstrap"),
|
||||||
resourcePath: resourcePath,
|
resourcePath,
|
||||||
configDirPath: configDirPath,
|
configDirPath,
|
||||||
}
|
}
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.onCreatedHotWindow = onCreatedHotWindow;
|
this.onCreatedHotWindow = onCreatedHotWindow;
|
||||||
|
|
Loading…
Reference in a new issue