aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-26 21:05:50 +0530
committerLibravatar GitHub <noreply@github.com>2021-05-26 21:05:50 +0530
commit296ce5ce62bcde6888df291f97105fa912ed7d35 (patch)
treeb28e7d2373f1020c1183469aa3a9feafecede569 /src/stores/AppStore.js
parentAdded new entry in context menu: 'Download image' (#1449) (diff)
downloadferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.gz
ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.zst
ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.zip
Replace 'remote' with 'electron/remote' (#1448)
* Locked new version of 'recipes' submodule with corresponding changes.
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,