From 466ca7bd7659e3bf34307a32073ce5118f9c0d8b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 11 Feb 2020 19:42:18 -0500 Subject: Adjust the battery return a tiny bit. --- src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp b/src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp index 37c4a535..a636cb0b 100644 --- a/src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp +++ b/src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp @@ -200,8 +200,7 @@ void LOS::systemSuspend(){ bool LOS::hasBattery(){ QString my_status = LUtils::getCmdOutput("acpi -b").join(""); bool no_battery = my_status.contains("No support"); - if (no_battery) return false; - return true; + return !no_battery; } //Battery Charge Level -- cgit