diff options
author | 2017-10-19 11:15:25 +0200 | |
---|---|---|
committer | 2017-10-19 11:19:50 +0200 | |
commit | ef503a1e29a540c7318efb5f2018efbf00706198 (patch) | |
tree | 05930a5d43f45c0e769c9ba256ba82f00d85b6ac /src/electron/Settings.js | |
parent | remove unnecessary platform check (diff) | |
download | ferdium-app-ef503a1e29a540c7318efb5f2018efbf00706198.tar.gz ferdium-app-ef503a1e29a540c7318efb5f2018efbf00706198.tar.zst ferdium-app-ef503a1e29a540c7318efb5f2018efbf00706198.zip |
Add option to disable system tray icon
Diffstat (limited to 'src/electron/Settings.js')
-rw-r--r-- | src/electron/Settings.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/electron/Settings.js b/src/electron/Settings.js index 049a08296..824b4c20c 100644 --- a/src/electron/Settings.js +++ b/src/electron/Settings.js | |||
@@ -1,5 +1,17 @@ | |||
1 | import { observable } from 'mobx'; | ||
2 | |||
3 | import { DEFAULT_APP_SETTINGS } from '../config'; | ||
4 | |||
1 | export default class Settings { | 5 | export default class Settings { |
2 | store = {}; | 6 | @observable store = { |
7 | autoLaunchOnStart: DEFAULT_APP_SETTINGS.autoLaunchOnStart, | ||
8 | autoLaunchInBackground: DEFAULT_APP_SETTINGS.autoLaunchInBackground, | ||
9 | runInBackground: DEFAULT_APP_SETTINGS.runInBackground, | ||
10 | enableSystemTray: DEFAULT_APP_SETTINGS.enableSystemTray, | ||
11 | minimizeToSystemTray: DEFAULT_APP_SETTINGS.minimizeToSystemTray, | ||
12 | locale: DEFAULT_APP_SETTINGS.locale, | ||
13 | beta: DEFAULT_APP_SETTINGS.beta, | ||
14 | }; | ||
3 | 15 | ||
4 | set(settings) { | 16 | set(settings) { |
5 | this.store = Object.assign(this.store, settings); | 17 | this.store = Object.assign(this.store, settings); |