mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
(Linux) Fixed an issue where the battery was not detected
This commit is contained in:
parent
7c35e19abf
commit
4c06ef2dc3
|
|
@ -435,6 +435,8 @@ void SystemStatus::getStatusBattery()
|
|||
else if (std::find(entries.cbegin(), entries.cend(), sysEntry + "/battery") != entries.cend())
|
||||
batteryDir = sysEntry + "/battery";
|
||||
|
||||
hasBattery = true;
|
||||
|
||||
if (!Utils::FileSystem::exists(batteryDir + "/status"))
|
||||
hasBattery = false;
|
||||
if (!Utils::FileSystem::exists(batteryDir + "/capacity"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue