chore(electron): remove offline mode (#10152)

close AF-2177
This commit is contained in:
forehalo
2025-02-14 10:04:00 +00:00
parent 981b4efecf
commit cc6fdef10e
22 changed files with 38 additions and 99 deletions
@@ -3,7 +3,6 @@ import { autoUpdater as defaultAutoUpdater } from 'electron-updater';
import { buildType } from '../config';
import { logger } from '../logger';
import { isOfflineModeEnabled } from '../utils';
import { AFFiNEUpdateProvider } from './affine-update-provider';
import { updaterSubjects } from './event';
import { WindowsUpdater } from './windows-updater';
@@ -55,7 +54,7 @@ export const setConfig = (newConfig: Partial<UpdaterConfig> = {}): void => {
};
export const checkForUpdates = async () => {
if (disabled || checkingUpdate || isOfflineModeEnabled()) {
if (disabled || checkingUpdate) {
return;
}
checkingUpdate = true;