[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [apper] Sentinel: don't check for updates on battery
From:       Lukas Tinkl <lukas () kde ! org>
Date:       2012-05-19 12:29:01
Message-ID: 20120519122901.8F734A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit e56af84c07909b918a46d993dd4c4f203dbf0ebb by Lukas Tinkl.
Committed on 19/05/2012 at 14:28.
Pushed by lukas into branch 'master'.

don't check for updates on battery

M  +2    -3    Sentinel/AbstractIsRunning.cpp

http://commits.kde.org/apper/e56af84c07909b918a46d993dd4c4f203dbf0ebb

diff --git a/Sentinel/AbstractIsRunning.cpp b/Sentinel/AbstractIsRunning.cpp
index 3bbfaab..79221d4 100644
--- a/Sentinel/AbstractIsRunning.cpp
+++ b/Sentinel/AbstractIsRunning.cpp
@@ -65,15 +65,14 @@ bool AbstractIsRunning::systemIsReady(bool ignoreBattery, bool ignoreMobile)
 
     // test whether network is connected
     if (networkState == Daemon::NetworkOffline || networkState == Daemon::UnknownNetwork) {
-        kDebug() << "nerwork state" << networkState;
+        kDebug() << "network state" << networkState;
         return false;
     }
 
-    // THIS IS NOT working on my computer
     // check how applications should behave (e.g. on battery power)
     if (!ignoreBattery && Solid::PowerManagement::appShouldConserveResources()) {
-//        return false;
         kDebug() << "should conserve??";
+        return false;
     }
 
     // check how applications should behave (e.g. on battery power)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic