Added check for battery power

This commit is contained in:
Chinsky
2016-01-07 23:21:25 +03:00
parent f885aba1c9
commit 41971d9273

View File

@@ -40,7 +40,7 @@
overlays.Cut()
if(!cpu || !cpu.enabled)
if (!(stat & NOPOWER))
if (!(stat & NOPOWER) || battery_powered)
overlays.Add(screen_icon_screensaver)
return
if(cpu.active_program)