Changeset 17692af


Ignore:
Timestamp:
05/09/14 12:55:17 (4 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3
Children:
0ccf75ef
Parents:
77631c2
Message:

oops, *now* the battery detection function works properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-desktop/Globals.h

    r77631c2 r17692af  
    4747        //Determine if there is battery support 
    4848        static bool hasBattery(){ 
    49           return (LUtils::getCmdOutput("apm -l").join("").simplified() != "255"); 
     49          int val = LUtils::getCmdOutput("apm -l").join("").toInt(); 
     50          return (val >= 0 && val <= 100); 
    5051        } 
    5152         
Note: See TracChangeset for help on using the changeset viewer.