diff options
author | 2018-12-02 00:51:49 +0100 | |
---|---|---|
committer | 2018-12-02 00:51:49 +0100 | |
commit | c10bc20a687c2cb17f752b649a51e3953e16539f (patch) | |
tree | adcc71dba1655d366d0e8ecdd138bbdb620aa371 /src/stores | |
parent | Don't delay app when user has no services (diff) | |
download | ferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.tar.gz ferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.tar.zst ferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.zip |
Check if service is enabled before trying to reload
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 8f217ea94..99b091589 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -439,6 +439,8 @@ export default class ServicesStore extends Store { | |||
439 | 439 | ||
440 | @action _reload({ serviceId }) { | 440 | @action _reload({ serviceId }) { |
441 | const service = this.one(serviceId); | 441 | const service = this.one(serviceId); |
442 | if (!service.isEnabled) return; | ||
443 | |||
442 | service.resetMessageCount(); | 444 | service.resetMessageCount(); |
443 | 445 | ||
444 | service.webview.loadURL(service.url); | 446 | service.webview.loadURL(service.url); |