feat: add option to disable update checker

Add a new setting in User Profile > Settings to disable automatic
update checking on startup and dashboard.

- Adds 'Disable Update Check' toggle in profile settings
- Skips GitHub API calls when disabled (reduces network requests)
- Works for both web app and Electron client

Fixes Termix-SSH/Support#410
This commit is contained in:
ZacharyZcR
2026-01-13 07:48:29 +08:00
parent 8ce4c6f364
commit 4c8e5988c2
5 changed files with 51 additions and 7 deletions

View File

@@ -30,6 +30,11 @@ export function ElectronVersionCheck({
const lineColor = isDarkMode ? "#151517" : "#f9f9f9";
useEffect(() => {
const updateCheckDisabled = localStorage.getItem("disableUpdateCheck") === "true";
if (updateCheckDisabled) {
onContinue();
return;
}
if (isElectron()) {
checkForUpdates();
} else {