From 927e6c0ab80014a4d7d29f2bfe5bdc9d87bcedcc Mon Sep 17 00:00:00 2001 From: Vince Date: Tue, 19 Nov 2024 14:31:40 +0100 Subject: [PATCH] Remove update check --- src/Vencord.ts | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/Vencord.ts b/src/Vencord.ts index c4c6d470..1c1ebc80 100644 --- a/src/Vencord.ts +++ b/src/Vencord.ts @@ -91,35 +91,9 @@ async function init() { syncSettings(); - if (!IS_WEB && !IS_UPDATER_DISABLED) { - try { - const isOutdated = await checkForUpdates(); - if (!isOutdated) return; - - if (Settings.autoUpdate) { - await update(); - if (Settings.autoUpdateNotification) - setTimeout(() => showNotification({ - title: "Vencord has been updated!", - body: "Click here to restart", - permanent: true, - noPersist: true, - onClick: relaunch - }), 10_000); - return; - } - - setTimeout(() => showNotification({ - title: "A Vencord update is available!", - body: "Click here to view the update", - permanent: true, - noPersist: true, - onClick: openUpdaterModal! - }), 10_000); - } catch (err) { - UpdateLogger.error("Failed to check for updates", err); - } - } + + + if (IS_DEV) { const pendingPatches = patches.filter(p => !p.all && p.predicate?.() !== false);