about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch')
-rw-r--r--nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch b/nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch
new file mode 100644
index 000000000000..25071a0f1943
--- /dev/null
+++ b/nixpkgs/pkgs/games/anki/patches/disable-auto-update.patch
@@ -0,0 +1,15 @@
+diff --git a/qt/aqt/main.py b/qt/aqt/main.py
+index 6c634132d..f3f3d4d10 100644
+--- a/qt/aqt/main.py
++++ b/qt/aqt/main.py
+@@ -1421,6 +1421,8 @@ title="{}" {}>{}</button>""".format(
+     ##########################################################################
+
+     def setup_auto_update(self, _log: list[DownloadLogEntry]) -> None:
++        return
++
+         from aqt.update import check_for_update
+
+         check_for_update()
+--
+2.42.0