diff options
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp | 3 |
1 files changed, 1 insertions, 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 |