summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index c4c6050..986ae5d 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -201,3 +201,3 @@ public:
setBacklight( 1 ); // lowest non-off
- } else if ( m_disable_suspend > 0 && m_enable_dim ) {
+ } else if ( !onAC && m_disable_suspend > 0 && m_enable_dim ) {
if ( m_backlight_current > 1 )
@@ -211,3 +211,3 @@ public:
setBacklightInternal( 0 ); // off
- } else if ( m_disable_suspend > 1 && m_enable_lightoff ) {
+ } else if ( !onAC && m_disable_suspend > 1 && m_enable_lightoff ) {
setBacklightInternal( 0 ); // off
@@ -226,3 +226,3 @@ public:
}
- else if ( m_enable_onlylcdoff ) {
+ else if ( !onAC && m_enable_onlylcdoff ) {
ODevice::inst ( ) -> setDisplayStatus ( false );
@@ -237,3 +237,3 @@ public:
}
- if ( ( m_disable_suspend > 2 ) && ( !Network::networkOnline ( ) ) ) {
+ if ( !onAC && ( m_disable_suspend > 2 ) && ( !Network::networkOnline ( ) ) ) {
QWSServer::sendKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE );
@@ -647,3 +647,3 @@ void DesktopApplication::psTimeout( int batRemaining )
if ( ( batRemaining == m_powerVeryLow ) ) {
- pa->alert( tr( "Battery is running very low." ), 6 );
+ pa->alert( tr( "Battery is running very low." ), 2 );
}
@@ -657,3 +657,3 @@ void DesktopApplication::psTimeout( int batRemaining )
if ( ps->backupBatteryStatus() == PowerStatus::VeryLow ) {
- pa->alert( tr( "The Back-up battery is very low.\nPlease charge the back-up battery." ), 3 );
+ pa->alert( tr( "The Back-up battery is very low.\nPlease charge the back-up battery." ), 2 );
}