aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index c409b6ac7..4af802460 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -1,7 +1,8 @@
1import { remote, ipcRenderer, shell } from 'electron'; 1import { ipcRenderer, shell } from 'electron';
2import { 2import {
3 action, computed, observable, 3 app, screen, powerMonitor, nativeTheme, getCurrentWindow, process as remoteProcess,
4} from 'mobx'; 4} from '@electron/remote';
5import { action, computed, observable } from 'mobx';
5import moment from 'moment'; 6import moment from 'moment';
6import AutoLaunch from 'auto-launch'; 7import AutoLaunch from 'auto-launch';
7import ms from 'ms'; 8import ms from 'ms';
@@ -24,18 +25,11 @@ import { sleep } from '../helpers/async-helpers';
24 25
25const debug = require('debug')('Ferdi:AppStore'); 26const debug = require('debug')('Ferdi:AppStore');
26 27
27const { 28const mainWindow = getCurrentWindow();
28 app,
29 screen,
30 powerMonitor,
31 nativeTheme,
32} = remote;
33
34const mainWindow = remote.getCurrentWindow();
35 29
36const defaultLocale = DEFAULT_APP_SETTINGS.locale; 30const defaultLocale = DEFAULT_APP_SETTINGS.locale;
37 31
38const executablePath = isMac ? remote.process.execPath : process.execPath; 32const executablePath = isMac ? remoteProcess.execPath : process.execPath;
39const autoLauncher = new AutoLaunch({ 33const autoLauncher = new AutoLaunch({
40 name: 'Ferdi', 34 name: 'Ferdi',
41 path: executablePath, 35 path: executablePath,