فهرست منبع

Don't fade battery icon when charging (#384)

Fixes #372
Danilo Bargen 8 سال پیش
والد
کامیت
3b46db7c1b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/directives/battery.ts

+ 1 - 1
src/directives/battery.ts

@@ -30,7 +30,7 @@ export default [
             controllerAs: 'ctrl',
             controller: [function() {
                 this.available = () => batteryStatusService.dataAvailable;
-                this.alert = () => batteryStatusService.isLow;
+                this.alert = () => batteryStatusService.isLow && !batteryStatusService.isCharging;
                 this.percent = () => batteryStatusService.percent;
 
                 this.description = (): string => {