From 8b963b9ad696d5244bbae1ced2d3b1b573f99970 Mon Sep 17 00:00:00 2001
From: SecretX33 <4389757+SecretX33@users.noreply.github.com>
Date: Sun, 28 Dec 2025 00:11:42 -0300
Subject: [PATCH] Remove 'check for updates' option from Help menu
---
ftl/qt/qt-accel.ftl | 1 -
ftl/qt/qt-misc.ftl | 1 -
qt/aqt/forms/main.ui | 6 ------
qt/aqt/main.py | 6 ------
qt/aqt/update.py | 9 ++-------
5 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/ftl/qt/qt-accel.ftl b/ftl/qt/qt-accel.ftl
index 22c315aec..3ab54eb24 100644
--- a/ftl/qt/qt-accel.ftl
+++ b/ftl/qt/qt-accel.ftl
@@ -3,7 +3,6 @@ qt-accel-about-mac = About Anki...
qt-accel-cards = &Cards
qt-accel-check-database = &Check Database
qt-accel-check-media = Check &Media
-qt-accel-check-for-updates = Check for &Updates...
qt-accel-edit = &Edit
qt-accel-exit = E&xit
qt-accel-export = &Export...
diff --git a/ftl/qt/qt-misc.ftl b/ftl/qt/qt-misc.ftl
index 5dbbd787c..d7bbef990 100644
--- a/ftl/qt/qt-misc.ftl
+++ b/ftl/qt/qt-misc.ftl
@@ -3,7 +3,6 @@ qt-misc-addons = Add-ons
qt-misc-all-cards-notes-and-media-for = All cards, notes, and media for this profile will be deleted. Are you sure?
qt-misc-all-cards-notes-and-media-for2 = All cards, notes, and media for the profile "{ $name }" will be deleted. Are you sure?
qt-misc-anki-updatedanki-has-been-released =
Anki Updated
Anki { $val } has been released.
-qt-misc-no-update-available = You're up to date!
Anki { $val } is currently the newest version available.
qt-misc-automatic-syncing-and-backups-have-been = Backup successfully restored. Automatic syncing and backups have been disabled for now. To enable them again, close the profile or restart Anki.
qt-misc-back-side-only = Back Side Only
qt-misc-backing-up = Backing Up...
diff --git a/qt/aqt/forms/main.ui b/qt/aqt/forms/main.ui
index 54eab80aa..bffc67ad0 100644
--- a/qt/aqt/forms/main.ui
+++ b/qt/aqt/forms/main.ui
@@ -55,7 +55,6 @@
-
@@ -180,11 +179,6 @@
F1
-
-
- qt_accel_check_for_updates
-
-
qt_accel_switch_profile
diff --git a/qt/aqt/main.py b/qt/aqt/main.py
index df7566242..3a320d386 100644
--- a/qt/aqt/main.py
+++ b/qt/aqt/main.py
@@ -1332,11 +1332,6 @@ title="{}" {}>{}""".format(
def onDocumentation(self) -> None:
openHelp(HelpPage.INDEX)
- def onCheckForUpdates(self) -> None:
- from aqt.update import check_for_update
-
- check_for_update(notify_if_no_update=True)
-
# legacy
def onDeckConf(self, deck: DeckDict | None = None) -> None:
@@ -1420,7 +1415,6 @@ title="{}" {}>{}""".format(
# Help
qconnect(m.actionDocumentation.triggered, self.onDocumentation)
- qconnect(m.actionCheckForUpdates.triggered, self.onCheckForUpdates)
qconnect(m.actionDonate.triggered, self.onDonate)
qconnect(m.actionAbout.triggered, self.onAbout)
m.actionAbout.setText(tr.qt_accel_about_mac())
diff --git a/qt/aqt/update.py b/qt/aqt/update.py
index f70d8aea3..e5794eead 100644
--- a/qt/aqt/update.py
+++ b/qt/aqt/update.py
@@ -15,10 +15,10 @@ from aqt.package import (
update_and_restart as _update_and_restart,
)
from aqt.qt import *
-from aqt.utils import openLink, show_info, show_warning, showText, tr
+from aqt.utils import openLink, show_warning, showText, tr
-def check_for_update(notify_if_no_update: bool = False) -> None:
+def check_for_update() -> None:
from aqt import mw
def do_check(_col: Collection) -> CheckForUpdateResponse:
@@ -54,11 +54,6 @@ def check_for_update(notify_if_no_update: bool = False) -> None:
if ver := resp.new_version:
if mw.pm.meta.get("suppressUpdate", None) != ver:
prompt_to_update(mw, ver)
- elif notify_if_no_update:
- show_info(
- tr.qt_misc_no_update_available(val=aqt.appVersion),
- textFormat=Qt.TextFormat.RichText,
- )
def on_fail(exc: Exception) -> None:
print(f"update check failed: {exc}")