blob: e39b6308750d3896b81f6460e03d0e6391236d63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { observable, extendObservable } from 'mobx';
import { DEFAULT_APP_SETTINGS } from '../config';
export default class Settings {
@observable autoLaunchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground;
@observable runInBackground = DEFAULT_APP_SETTINGS.runInBackground;
@observable enableSystemTray = DEFAULT_APP_SETTINGS.enableSystemTray;
@observable minimizeToSystemTray = DEFAULT_APP_SETTINGS.minimizeToSystemTray;
@observable showDisabledServices = DEFAULT_APP_SETTINGS.showDisabledServices;
@observable showMessageBadgeWhenMuted = DEFAULT_APP_SETTINGS.showMessageBadgeWhenMuted;
@observable enableSpellchecking = DEFAULT_APP_SETTINGS.enableSpellchecking;
@observable locale = DEFAULT_APP_SETTINGS.locale;
@observable beta = DEFAULT_APP_SETTINGS.beta;
@observable isAppMuted = DEFAULT_APP_SETTINGS.isAppMuted;
constructor(data) {
Object.assign(this, data);
}
update(data) {
extendObservable(this, data);
}
}
|