diff options
author | 2022-10-05 16:07:16 +0530 | |
---|---|---|
committer | 2022-10-05 19:31:04 +0530 | |
commit | 962bb934e393eaea5e9ea773c2651109979c967d (patch) | |
tree | 938e72b1c189eff280d919b514de3b9622e8556a /src/models | |
parent | 6.2.1-nightly.9 [skip ci] (diff) | |
download | ferdium-app-962bb934e393eaea5e9ea773c2651109979c967d.tar.gz ferdium-app-962bb934e393eaea5e9ea773c2651109979c967d.tar.zst ferdium-app-962bb934e393eaea5e9ea773c2651109979c967d.zip |
prevent from hibernating when media playing
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/Service.ts b/src/models/Service.ts index b44e081b7..f33d30695 100644 --- a/src/models/Service.ts +++ b/src/models/Service.ts | |||
@@ -291,7 +291,7 @@ export default class Service { | |||
291 | } | 291 | } |
292 | 292 | ||
293 | @computed get canHibernate(): boolean { | 293 | @computed get canHibernate(): boolean { |
294 | return this.isHibernationEnabled; | 294 | return this.isHibernationEnabled && !this.isMediaPlaying; |
295 | } | 295 | } |
296 | 296 | ||
297 | @computed get isHibernating(): boolean { | 297 | @computed get isHibernating(): boolean { |