Skip to content

Commit ffacf30

Browse files
committed
Allow disabling update mechanism
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 5880301 commit ffacf30

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

electron_app/src/electron-main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
147147
} else {
148148
mainWindow.focus();
149149
}
150+
break;
150151
case 'origin_migrate':
151152
migratingOrigin = true;
152153
await migrateFromOldOrigin();
@@ -262,10 +263,12 @@ app.on('ready', () => {
262263
path: absTarget,
263264
});
264265
}, (error) => {
265-
if (error) console.error('Failed to register protocol')
266+
if (error) console.error('Failed to register protocol');
266267
});
267268

268-
if (vectorConfig['update_base_url']) {
269+
if (argv['no-update']) {
270+
console.log('Auto update disabled via command line flag "--no-update"');
271+
} else if (vectorConfig['update_base_url']) {
269272
console.log(`Starting auto update with base URL: ${vectorConfig['update_base_url']}`);
270273
updater.start(vectorConfig['update_base_url']);
271274
} else {

0 commit comments

Comments
 (0)