mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(electron): self-update is pending (#2272)
This commit is contained in:
@@ -14,6 +14,7 @@ export const appSidebarWidthAtom = atomWithStorage(
|
||||
|
||||
export const updateAvailableAtom = atomWithObservable<boolean>(() => {
|
||||
return new Observable<boolean>(subscriber => {
|
||||
subscriber.next(false);
|
||||
if (typeof window !== 'undefined') {
|
||||
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
|
||||
if (isMacosDesktop) {
|
||||
@@ -25,6 +26,5 @@ export const updateAvailableAtom = atomWithObservable<boolean>(() => {
|
||||
};
|
||||
}
|
||||
}
|
||||
subscriber.next(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user