提交 24590b1d 编写于 作者: J Johannes Rieken

test-electron: don't show window when running without --debug

上级 375bb990
......@@ -24,6 +24,7 @@ app.on('ready', () => {
const win = new BrowserWindow({
height: 600,
width: 800,
show: false,
webPreferences: {
backgroundThrottling: false,
webSecurity: false
......@@ -31,8 +32,8 @@ app.on('ready', () => {
});
win.webContents.on('did-finish-load', () => {
win.show();
if (debug) {
win.show();
win.webContents.openDevTools('right');
}
win.webContents.send('run', { grep, run });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册