1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 18:32:34 +01:00

Disable windows version check

Temporary workaround #290
This commit is contained in:
Mikael Finstad 2020-04-03 18:00:00 +08:00
parent 9d17115bf7
commit 19959439e9

View File

@ -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);