chore: gate check auto updater
This commit is contained in:
parent
4350d4c9a0
commit
388959a1fe
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user