-rw-r--r-- | core/launcher/desktop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index bc43475..f2e00d8 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -224,5 +224,6 @@ void DesktopApplication::apmTimeout() + if ( m_ps-> acStatus ( ) != PowerStatus::Online ) { int bat = m_ps-> batteryPercentRemaining ( ); - if ( m_ps_last-> batteryPercentRemaining ( ) != bat ) { + if ( bat < m_ps_last-> batteryPercentRemaining ( )) { if ( bat <= m_powerCritical ) @@ -231,4 +232,3 @@ void DesktopApplication::apmTimeout() pa->alert( tr( "Battery is running very low." ), 2 ); - - + } if ( m_ps-> backupBatteryStatus ( ) == PowerStatus::VeryLow ) |