[Bootstrap] Fix not requiring config causing window not to open from MainWindow

This commit is contained in:
Ducko 2022-04-09 08:25:09 +01:00
parent 372f4d97b7
commit fa13c5b2b8

3
src/bootstrap.js vendored
View file

@ -88,7 +88,8 @@ const startUpdate = async () => {
desktopCore.setMainWindowVisible(!startMin);
setTimeout(() => { // Try to update our asar
if (oaConfig.setup !== true || process.argv.includes('--config')) require('./config').open();
const config = require('./config');
if (oaConfig.setup !== true || process.argv.includes('--config')) config.open();
if (oaConfig.autoupdate !== false) { // If autoupdate disabled, don't update
try {