fix(electron): self-update is pending (#2272)

This commit is contained in:
Himself65 authored and GitHub committed 2023-05-08 18:16:07 -05:00
1 parent 4f99ad2db4
commit 1e8c5a4482
3 files changed
+16 -1

No files matched your search

@@ -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);
});
});