mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix potential infinite updater loop due to stale settings sync state
This commit is contained in:
@@ -1530,10 +1530,16 @@ export const useSettingsStore = createWithEqualityFn<SettingsSlice>()(
|
||||
});
|
||||
}
|
||||
|
||||
// Version 16 introduced a bug where the release channel may have been reset
|
||||
// to the latest channel. This is to revert it.
|
||||
if (version === 16) {
|
||||
state.window.releaseChannel = 'beta';
|
||||
}
|
||||
|
||||
return persistedState;
|
||||
},
|
||||
name: 'store_settings',
|
||||
version: 16,
|
||||
version: 17,
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user