mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 20:22:10 +00:00
Add error message for battery not found
This commit is contained in:
parent
12d1c59ef0
commit
da4634770d
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ namespace System
|
|||
uint32_t intCapacity = atoi(capacityStr.c_str());
|
||||
return (double)intCapacity / 100.0;
|
||||
}
|
||||
|
||||
// TODO: This is the wrong place to do this, since we don't know whether it is actually disabled.
|
||||
// A RuntimeConfig would be better, but it works for now.
|
||||
LOG("Couldn't open battery charge files! Disabling battery widget.")
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue