hotfix: electron window not displaying on start

This commit is contained in:
André Neves 2018-11-26 20:34:14 -05:00
parent 971fa4fcdb
commit d1f7084bac
4 changed files with 13261 additions and 8975 deletions

View File

@ -10,13 +10,15 @@ import Positioner from 'electron-positioner';
import isDev from 'electron-is-dev';
/* eslint-enable import/no-extraneous-dependencies */
import type { BrowserWindow as BrowserWindowType, Tray as TrayType } from 'electron';
import { registerDebugShortcut } from '../utils/debugShortcut';
import type {
BrowserWindow as BrowserWindowType,
Tray as TrayType,
} from 'electron';
import { registerDebugShortcut } from '../utils/debug-shortcut';
let mainWindow: BrowserWindowType;
let tray: TrayType;
let updateAvailable = false;
let updateAvailable: boolean = false;
const showStatus = (text) => {
if (text === 'Update downloaded') updateAvailable = true;
@ -49,8 +51,8 @@ const createWindow = () => {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
transparent: true,
frame: false,
transparent: false,
frame: true,
resizable: true,
webPreferences: {
devTools: true,

13253
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

8969
yarn.lock

File diff suppressed because it is too large Load Diff