From 4f475ddaeb97ec7e392c6adc078fc31dc153e352 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 17 Mar 2025 09:05:08 +0000 Subject: [PATCH] Fix `--no-update` command line flag Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/electron-main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/electron-main.ts b/src/electron-main.ts index 16134924..913f253f 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -436,8 +436,8 @@ app.on("ready", async () => { }); }); - if (argv["no-update"]) { - console.log('Auto update disabled via command line flag "--no-update"'); + if (argv["update"] === false) { + console.log("Auto update disabled via command line flag"); } else if (global.vectorConfig["update_base_url"]) { console.log(`Starting auto update with base URL: ${global.vectorConfig["update_base_url"]}`); void updater.start(global.vectorConfig["update_base_url"]);