diff options
author | 2019-10-13 13:09:29 +0200 | |
---|---|---|
committer | 2019-10-13 13:09:29 +0200 | |
commit | 6ae97425b0c0da181a9ec26e52535ceadd1f4e46 (patch) | |
tree | be11b973b3cfc906f9b4ad2e3b043fd61d5bdb37 /src/stores | |
parent | Improve QuickSwitch design (diff) | |
download | ferdium-app-6ae97425b0c0da181a9ec26e52535ceadd1f4e46.tar.gz ferdium-app-6ae97425b0c0da181a9ec26e52535ceadd1f4e46.tar.zst ferdium-app-6ae97425b0c0da181a9ec26e52535ceadd1f4e46.zip |
Add indicator for hibernating services
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 6120ae023..1bf32af9f 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -75,6 +75,7 @@ export default class ServicesStore extends Store { | |||
75 | this.actions.service.toggleAudio.listen(this._toggleAudio.bind(this)); | 75 | this.actions.service.toggleAudio.listen(this._toggleAudio.bind(this)); |
76 | this.actions.service.openDevTools.listen(this._openDevTools.bind(this)); | 76 | this.actions.service.openDevTools.listen(this._openDevTools.bind(this)); |
77 | this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this)); | 77 | this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this)); |
78 | this.actions.service.setHibernation.listen(this._setHibernation.bind(this)); | ||
78 | 79 | ||
79 | this.registerReactions([ | 80 | this.registerReactions([ |
80 | this._focusServiceReaction.bind(this), | 81 | this._focusServiceReaction.bind(this), |
@@ -648,6 +649,11 @@ export default class ServicesStore extends Store { | |||
648 | } | 649 | } |
649 | } | 650 | } |
650 | 651 | ||
652 | @action _setHibernation({ serviceId, hibernating }) { | ||
653 | const service = this.one(serviceId); | ||
654 | service.isHibernating = hibernating; | ||
655 | } | ||
656 | |||
651 | // Reactions | 657 | // Reactions |
652 | _focusServiceReaction() { | 658 | _focusServiceReaction() { |
653 | const service = this.active; | 659 | const service = this.active; |