Disable windows version check

Temporary workaround #290
pull/304/head
Mikael Finstad 2020-04-03 18:00:00 +08:00
rodzic 9d17115bf7
commit 19959439e9
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
const electron = require('electron'); // eslint-disable-line
const isDev = require('electron-is-dev');
const { join } = require('path');
const os = require('os');
const menu = require('./menu');
@ -76,7 +77,9 @@ app.on('ready', async () => {
createWindow();
menu(app, mainWindow);
if (!process.windowsStore && !process.mas) {
// process.windowsStore is not working. Waiting for fix: https://github.com/electron/electron/issues/18161
// if (!process.windowsStore && !process.mas) {
if (os.platform() !== 'win32' && !process.mas) {
const newVersion = await checkNewVersion();
if (newVersion) {
menu(app, mainWindow, newVersion);