aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/index.ts')
-rw-r--r--packages/main/src/index.ts5
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';
26import osName from 'os-name'; 26import osName from 'os-name';
27 27
28import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools'; 28import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools';
29import electronShell from './infrastructure/electron/impl/electronShell';
29import initReactions from './initReactions'; 30import initReactions from './initReactions';
30import { createMainStore } from './stores/MainStore'; 31import MainStore from './stores/MainStore';
31import { getLogger } from './utils/log'; 32import { getLogger } from './utils/log';
32 33
33const isDevelopment = import.meta.env.MODE === 'development'; 34const isDevelopment = import.meta.env.MODE === 'development';
@@ -77,7 +78,7 @@ app.setAboutPanelOptions({
77 version: '', 78 version: '',
78}); 79});
79 80
80const store = createMainStore(); 81const store = MainStore.create({}, electronShell);
81 82
82app.on('second-instance', () => { 83app.on('second-instance', () => {
83 store.mainWindow?.bringToForeground(); 84 store.mainWindow?.bringToForeground();