summaryrefslogtreecommitdiff
path: root/pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-07-22 20:36:23 -0400
committerFreya Murphy <freya@freyacat.org>2025-07-22 20:36:23 -0400
commita1e910c70cb6d5f33c23eb274b63c2ea12d56dea (patch)
tree9869ee845ecde44d9f5fa3756eeb6eb784aea8af /pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch
parentuse NIXOS_OZONE_WL instead of manually setting ozone flags (diff)
downloaddotfiles-nix-a1e910c70cb6d5f33c23eb274b63c2ea12d56dea.tar.gz
dotfiles-nix-a1e910c70cb6d5f33c23eb274b63c2ea12d56dea.tar.bz2
dotfiles-nix-a1e910c70cb6d5f33c23eb274b63c2ea12d56dea.zip
unofficial-homestuck-collection: refactor package
Diffstat (limited to 'pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch')
-rw-r--r--pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch b/pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch
new file mode 100644
index 0000000..c1b9dde
--- /dev/null
+++ b/pkgs/unofficial-homestuck-collection/0002-disable-update-check.patch
@@ -0,0 +1,63 @@
+From 2962679d4a3d8320681fcd6804712a71a9ea661b Mon Sep 17 00:00:00 2001
+From: Freya Murphy <freya@freyacat.org>
+Date: Sun, 20 Jul 2025 12:06:21 -0400
+Subject: [PATCH 2/3] disable update check
+
+---
+ src/components/SystemPages/Settings.vue | 15 +++++++++------
+ src/components/UIElements/Updater.vue | 13 +------------
+ 2 files changed, 10 insertions(+), 18 deletions(-)
+
+diff --git a/src/components/SystemPages/Settings.vue b/src/components/SystemPages/Settings.vue
+index 3371358..47c5ea6 100644
+--- a/src/components/SystemPages/Settings.vue
++++ b/src/components/SystemPages/Settings.vue
+@@ -598,12 +598,15 @@ export default {
+ label: "Use system window decorations",
+ desc: "Use OS-native window decorations instead of the electron title bar. <strong>Will restart the application.</strong>",
+ platform_whitelist: ['electron']
+- }, {
+- model: "allowSysUpdateNotifs",
+- label: "Update notifications",
+- desc: "Unless this setting is disabled, the collection will check to see if there's a new version of the app available when it starts up and alert you if there is.",
+- platform_whitelist: ['electron']
+- }, {
++ },
++ // MOD: patch out update notifs
++ // {
++ // model: "allowSysUpdateNotifs",
++ // label: "Update notifications",
++ // desc: "Unless this setting is disabled, the collection will check to see if there's a new version of the app available when it starts up and alert you if there is.",
++ // platform_whitelist: ['electron']
++ // },
++ {
+ model: "useTabbedBrowsing",
+ label: "Tabbed Browsing",
+ desc: "By default, the web app only shows one page at a time, like a standard website. This setting re-enables the in-app tab bar, and the app will store your tabs in settings.",
+diff --git a/src/components/UIElements/Updater.vue b/src/components/UIElements/Updater.vue
+index 6b3f677..d9bae45 100644
+--- a/src/components/UIElements/Updater.vue
++++ b/src/components/UIElements/Updater.vue
+@@ -73,18 +73,7 @@ export default {
+ watch: {
+ },
+ mounted(){
+- const is_flatpak = !!(process.env.container)
+- if (this.$localData.settings.allowSysUpdateNotifs && !is_flatpak) {
+- const now = new Date()
+- const last_checked = new Date(this.$localData.settings.lastCheckedUpdate)
+- const one_day = (12 * 60 * 60 * 1000)
+- if (last_checked == "Invalid Date" || now - last_checked > one_day) {
+- this.doUpdateCheck()
+- this.$localData.settings.lastCheckedUpdate = now.toISOString()
+- } else {
+- this.$logger.info("Skipping update check, already checked", last_checked)
+- }
+- }
++ // MOD: patch out update check
+ }
+ }
+ </script>
+--
+2.50.0
+