summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/an/anytype/0001-feat-update-Disable-auto-checking-for-updates-and-updating-manually.patch
blob: c8e17042b595120b37747b94408abe5ccea22d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/electron/ts/update.ts b/electron/ts/update.ts
index 8d63cb8eb7..ea2dadf0c9 100644
--- a/electron/ts/update.ts
+++ b/electron/ts/update.ts
@@ -31,7 +31,8 @@ class UpdateManager {
 		autoUpdater.autoInstallOnAppQuit = false;
 		autoUpdater.channel = channel;
 
-		this.setTimeout();
+		// PATCH(update): Never check for updates on a timer timeout.
+		// this.setTimeout();
 
 		autoUpdater.on('checking-for-update', () => {
 			Util.log('info', 'Checking for update');
@@ -79,6 +80,9 @@ class UpdateManager {
 	};
 
 	isAllowed (): boolean {
+		// PATCH(update): Always disallow update check, even when requested by the user manually or when Anytype starts.
+		return false;
+
 		const { config } = ConfigManager;
 
 		if (config.updateDisabled) {