mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(desktop): stop the updater button flickering after download (#2089)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user