diff options
author | 2020-03-09 12:53:04 +0100 | |
---|---|---|
committer | 2020-03-09 12:53:04 +0100 | |
commit | 994de3b5750a34598aba5746a4dbd1a4e811fae8 (patch) | |
tree | c0f92f498f7ef4a5ef9222143ef2107ef9c61b5c /src/stores | |
parent | Merge pull request #428 from dpeukert/patch-1 (diff) | |
download | ferdium-app-994de3b5750a34598aba5746a4dbd1a4e811fae8.tar.gz ferdium-app-994de3b5750a34598aba5746a4dbd1a4e811fae8.tar.zst ferdium-app-994de3b5750a34598aba5746a4dbd1a4e811fae8.zip |
add option to disable reload after resume (#447)
* add option to disable reload after resume
closes #442
* remove unused property
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 36e6efd4f..593bf341e 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -202,7 +202,7 @@ export default class AppStore extends Store { | |||
202 | powerMonitor.on('resume', () => { | 202 | powerMonitor.on('resume', () => { |
203 | debug('System resumed, last suspended on', this.timeSuspensionStart.toString()); | 203 | debug('System resumed, last suspended on', this.timeSuspensionStart.toString()); |
204 | 204 | ||
205 | if (this.timeSuspensionStart.add(10, 'm').isBefore(moment())) { | 205 | if (this.timeSuspensionStart.add(10, 'm').isBefore(moment()) && this.stores.settings.app.get('reloadAfterResume')) { |
206 | debug('Reloading services, user info and features'); | 206 | debug('Reloading services, user info and features'); |
207 | 207 | ||
208 | setTimeout(() => { | 208 | setTimeout(() => { |