fix(desktop): stop the updater button flickering after download (#2089)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-29 17:44:43 +02:00
1 parent 96c5db3f5d
commit 9b8659a40b
3 files changed
+60 -1

No files matched your search

@@ -166,6 +166,13 @@ export const updaterStateMachine = setup({
}),
applyNativeAvailable: assign(({context, event}) => {
if (event.type !== 'native.available') return {};
const currentNative = context.updateInfo.native;
if (currentNative.downloaded && (event.version == null || event.version === currentNative.version)) {
return {
isChecking: false,
nativeUnsupported: null,
};
}
return {
updateInfo: {
...context.updateInfo,