Skip to content

Commit 7942d20

Browse files
committed
fix: only detect product.json's backup file when checking new version installed
1 parent 38caaa9 commit 7942d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/manager/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function createFileManagers() {
3333
flushCache()
3434

3535
return {
36-
hasBakFile: () => builtinManagers.every(m => m.hasBakFile),
36+
hasBakFile: () => builtinManagers[builtinManagers.length - 1].hasBakFile,
3737
hasBakExtFiles: () => createExtensionFileManagers(true).every(m => m.hasBakFile),
3838
reload: async (text: string) => {
3939
await runAndRestart(

0 commit comments

Comments
 (0)