aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2020-02-11 19:42:18 -0500
committerKen Moore <ken@ixsystems.com>2020-02-11 19:42:18 -0500
commit466ca7bd7659e3bf34307a32073ce5118f9c0d8b (patch)
tree9ecfed76ba2f323c60a5ef275a982a070f7d5abb
parentAdd spanish translation of xsession desktop entry (diff)
downloadlumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.tar.gz
lumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.tar.bz2
lumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.zip
Adjust the battery return a tiny bit.
-rw-r--r--src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp3
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
bgstack15