chore: gate check auto updater

This commit is contained in:
Minh141120 2025-08-14 12:39:48 +07:00
parent 4350d4c9a0
commit 388959a1fe

View File

@ -53,6 +53,11 @@ export const useAppUpdater = () => {
const checkForUpdate = useCallback(
async (resetRemindMeLater = false) => {
if (AUTO_UPDATER_DISABLED) {
console.log('Auto updater is disabled')
return
}
try {
// Reset remindMeLater if requested (e.g., when called from settings)
if (resetRemindMeLater) {
@ -148,6 +153,11 @@ export const useAppUpdater = () => {
)
const downloadAndInstallUpdate = useCallback(async () => {
if (AUTO_UPDATER_DISABLED) {
console.log('Auto updater is disabled')
return
}
if (!updateState.updateInfo) return
try {