mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-09 04:10:09 +03:00
fix(electron): updater not working on startup (#8274)
This commit is contained in:
parent
7a26c76e53
commit
ccd630a2b0
@ -64,7 +64,7 @@ const appSettingEffect = atomEffect(get => {
|
|||||||
if (BUILD_CONFIG.isElectron) {
|
if (BUILD_CONFIG.isElectron) {
|
||||||
logger.debug('sync settings to electron', settings);
|
logger.debug('sync settings to electron', settings);
|
||||||
// this api type in @affine/electron-api, but it is circular dependency this package, use any here
|
// this api type in @affine/electron-api, but it is circular dependency this package, use any here
|
||||||
(window as any).apis?.updater
|
(window as any).__apis?.updater
|
||||||
.setConfig({
|
.setConfig({
|
||||||
autoCheckUpdate: settings.autoCheckUpdate,
|
autoCheckUpdate: settings.autoCheckUpdate,
|
||||||
autoDownloadUpdate: settings.autoDownloadUpdate,
|
autoDownloadUpdate: settings.autoDownloadUpdate,
|
||||||
|
Loading…
Reference in New Issue
Block a user