Skip to content

Commit a5a4c16

Browse files
authored
Merge pull request element-hq#8911 from vector-im/t3chguy/no-update
Allow disabling update mechanism
2 parents 9e11c70 + ffacf30 commit a5a4c16

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
@@ -157,6 +157,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
157157
} else {
158158
mainWindow.focus();
159159
}
160+
break;
160161
case 'origin_migrate':
161162
migratingOrigin = true;
162163
await migrateFromOldOrigin();
@@ -272,10 +273,12 @@ app.on('ready', () => {
272273
path: absTarget,
273274
});
274275
}, (error) => {
275-
if (error) console.error('Failed to register protocol')
276+
if (error) console.error('Failed to register protocol');
276277
});
277278

278-
if (vectorConfig['update_base_url']) {
279+
if (argv['no-update']) {
280+
console.log('Auto update disabled via command line flag "--no-update"');
281+
} else if (vectorConfig['update_base_url']) {
279282
console.log(`Starting auto update with base URL: ${vectorConfig['update_base_url']}`);
280283
updater.start(vectorConfig['update_base_url']);
281284
} else {

0 commit comments

Comments
 (0)