diff options
author | Ken Moore <ken@ixsystems.com> | 2020-02-11 19:42:18 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2020-02-11 19:42:18 -0500 |
commit | 466ca7bd7659e3bf34307a32073ce5118f9c0d8b (patch) | |
tree | 9ecfed76ba2f323c60a5ef275a982a070f7d5abb /src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp | |
parent | Add spanish translation of xsession desktop entry (diff) | |
download | lumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.tar.gz lumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.tar.bz2 lumina-466ca7bd7659e3bf34307a32073ce5118f9c0d8b.zip |
Adjust the battery return a tiny bit.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaOS-VoidLinux.cpp')
-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 |