Skip to content

Commit

Permalink
fix(main: store): set cwd to v2 to prevent conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Mar 31, 2022
1 parent 1ad8639 commit 075b490
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/store/module/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Store from 'electron-store'
import { STORE_NAME } from '..'
import type { AppStore } from './types'

export default new Store<AppStore>({
name: 'app',
cwd: 'massCode',
cwd: 'v2',

defaults: {
bounds: {}
Expand Down
3 changes: 2 additions & 1 deletion src/main/store/module/preferences.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Store from 'electron-store'
import { homedir, platform } from 'os'
import { STORE_NAME } from '..'
import type { PreferencesStore } from './types'

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

export default new Store<PreferencesStore>({
name: 'preferences',
cwd: 'massCode',
cwd: 'v2',

defaults: {
storagePath: defaultPath,
Expand Down

0 comments on commit 075b490

Please sign in to comment.