diff options
Diffstat (limited to 'src/stores/SettingsStore.ts')
-rw-r--r-- | src/stores/SettingsStore.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts index 90cd82690..010290a4a 100644 --- a/src/stores/SettingsStore.ts +++ b/src/stores/SettingsStore.ts | |||
@@ -11,17 +11,11 @@ import { | |||
11 | LOCAL_SERVER, | 11 | LOCAL_SERVER, |
12 | } from '../config'; | 12 | } from '../config'; |
13 | import { hash } from '../helpers/password-helpers'; | 13 | import { hash } from '../helpers/password-helpers'; |
14 | import Request from './lib/Request'; | ||
15 | import TypedStore from './lib/TypedStore'; | 14 | import TypedStore from './lib/TypedStore'; |
16 | 15 | ||
17 | const debug = require('../preload-safe-debug')('Ferdium:SettingsStore'); | 16 | const debug = require('../preload-safe-debug')('Ferdium:SettingsStore'); |
18 | 17 | ||
19 | export default class SettingsStore extends TypedStore { | 18 | export default class SettingsStore extends TypedStore { |
20 | @observable updateAppSettingsRequest = new Request( | ||
21 | this.api.local, | ||
22 | 'updateAppSettings', | ||
23 | ); | ||
24 | |||
25 | @observable loaded: boolean = false; | 19 | @observable loaded: boolean = false; |
26 | 20 | ||
27 | fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES; | 21 | fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES; |
@@ -67,7 +61,7 @@ export default class SettingsStore extends TypedStore { | |||
67 | let inactivityTimer; | 61 | let inactivityTimer; |
68 | getCurrentWindow().on('blur', () => { | 62 | getCurrentWindow().on('blur', () => { |
69 | if ( | 63 | if ( |
70 | this.all.app.lockingFeatureEnabled && | 64 | this.all.app.isLockingFeatureEnabled && |
71 | this.all.app.inactivityLock !== 0 | 65 | this.all.app.inactivityLock !== 0 |
72 | ) { | 66 | ) { |
73 | inactivityTimer = setTimeout( | 67 | inactivityTimer = setTimeout( |
@@ -94,7 +88,7 @@ export default class SettingsStore extends TypedStore { | |||
94 | if ( | 88 | if ( |
95 | !this.loaded && | 89 | !this.loaded && |
96 | resp.type === 'app' && | 90 | resp.type === 'app' && |
97 | resp.data.lockingFeatureEnabled | 91 | resp.data.isLockingFeatureEnabled |
98 | ) { | 92 | ) { |
99 | process.nextTick(() => { | 93 | process.nextTick(() => { |
100 | if (!this.all.app.locked) { | 94 | if (!this.all.app.locked) { |