[Bootstrap] Fix not requiring config causing window not to open from MainWindow
This commit is contained in:
parent
372f4d97b7
commit
fa13c5b2b8
1 changed files with 2 additions and 1 deletions
3
src/bootstrap.js
vendored
3
src/bootstrap.js
vendored
|
@ -88,7 +88,8 @@ const startUpdate = async () => {
|
||||||
desktopCore.setMainWindowVisible(!startMin);
|
desktopCore.setMainWindowVisible(!startMin);
|
||||||
|
|
||||||
setTimeout(() => { // Try to update our asar
|
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
|
if (oaConfig.autoupdate !== false) { // If autoupdate disabled, don't update
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue