diff options
Diffstat (limited to 'packages/main/src/index.ts')
-rw-r--r-- | packages/main/src/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts index 40b15f0..869c555 100644 --- a/packages/main/src/index.ts +++ b/packages/main/src/index.ts | |||
@@ -26,8 +26,9 @@ import { ensureDirSync } from 'fs-extra'; | |||
26 | import osName from 'os-name'; | 26 | import osName from 'os-name'; |
27 | 27 | ||
28 | import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools'; | 28 | import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools'; |
29 | import electronShell from './infrastructure/electron/impl/electronShell'; | ||
29 | import initReactions from './initReactions'; | 30 | import initReactions from './initReactions'; |
30 | import { createMainStore } from './stores/MainStore'; | 31 | import MainStore from './stores/MainStore'; |
31 | import { getLogger } from './utils/log'; | 32 | import { getLogger } from './utils/log'; |
32 | 33 | ||
33 | const isDevelopment = import.meta.env.MODE === 'development'; | 34 | const isDevelopment = import.meta.env.MODE === 'development'; |
@@ -77,7 +78,7 @@ app.setAboutPanelOptions({ | |||
77 | version: '', | 78 | version: '', |
78 | }); | 79 | }); |
79 | 80 | ||
80 | const store = createMainStore(); | 81 | const store = MainStore.create({}, electronShell); |
81 | 82 | ||
82 | app.on('second-instance', () => { | 83 | app.on('second-instance', () => { |
83 | store.mainWindow?.bringToForeground(); | 84 | store.mainWindow?.bringToForeground(); |