Skip to content

Commit 075b490

Browse files
committed
fix(main: store): set cwd to v2 to prevent conflict
1 parent 1ad8639 commit 075b490

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/store/module/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import Store from 'electron-store'
2+
import { STORE_NAME } from '..'
23
import type { AppStore } from './types'
34

45
export default new Store<AppStore>({
56
name: 'app',
6-
cwd: 'massCode',
7+
cwd: 'v2',
78

89
defaults: {
910
bounds: {}

src/main/store/module/preferences.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Store from 'electron-store'
22
import { homedir, platform } from 'os'
3+
import { STORE_NAME } from '..'
34
import type { PreferencesStore } from './types'
45

56
const isDev = process.env.NODE_ENV === 'development'
@@ -15,7 +16,7 @@ const backupPath = isWin ? `${defaultPath}\\backups` : `${defaultPath}/backups`
1516

1617
export default new Store<PreferencesStore>({
1718
name: 'preferences',
18-
cwd: 'massCode',
19+
cwd: 'v2',
1920

2021
defaults: {
2122
storagePath: defaultPath,

0 commit comments

Comments
 (0)