summarylogtreecommitdiffstats
path: root/01-disable-update-check.patch
diff options
context:
space:
mode:
Diffstat (limited to '01-disable-update-check.patch')
-rw-r--r--01-disable-update-check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/01-disable-update-check.patch b/01-disable-update-check.patch
new file mode 100644
index 000000000000..70994acc6fd2
--- /dev/null
+++ b/01-disable-update-check.patch
@@ -0,0 +1,20 @@
+diff -ura package.orig/src/main.js package.new/src/main.js
+--- package.orig/src/main.js 2020-12-22 21:55:07.535806928 +0100
++++ package.new/src/main.js 2020-12-22 21:58:31.700431931 +0100
+@@ -66,16 +66,6 @@
+ // Tasks we need for every start and restart
+ mainWindow.webContents.on("did-finish-load", () => core.prepare(cli.file));
+
+- // Task we need only on the first start
+- mainWindow.webContents.once("did-finish-load", () => {
+- updater
+- .isOutdated()
+- .then(updateUrl => {
+- if (updateUrl) mainEvent.emit("user:update-available", updateUrl);
+- })
+- .catch(e => log.debug(e)); // Ignore errors, since this is non-essential
+- });
+-
+ mainWindow.loadURL(
+ url.format({
+ pathname: path.join(__dirname, "html/index.html"),