summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 33bea36..c4c6050 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -22,5 +22,4 @@
#include "info.h"
#include "launcher.h"
-//#include "mrulist.h"
#include "qcopbridge.h"
#include "shutdownimpl.h"
@@ -170,4 +169,5 @@ public:
m_enable_lightoff_ac = false;
m_enable_onlylcdoff_ac = false;
+ m_disable_apm_ac = false;
m_lcd_status = true;
@@ -216,4 +216,8 @@ public:
break;
case 2:
+ if ( m_disable_apm_ac && onAC ) {
+ return true;
+ }
+
if ( m_enable_onlylcdoff_ac && onAC ) {
ODevice::inst ( ) -> setDisplayStatus ( false );
@@ -274,5 +278,5 @@ public:
m_enable_dim = ( ( i1 != 0 ) ? config. readNumEntry ( "Dim", 1 ) : false );
m_enable_lightoff = ( ( i2 != 0 ) ? config. readNumEntry ( "LightOff", 1 ) : false );
- m_enable_onlylcdoff = config. readNumEntry ( "LcdOffOnly", 0 );
+ m_enable_onlylcdoff = config.readNumEntry ( "LcdOffOnly", 0 );
if ( !i1 && !i2 && !i3 )
@@ -301,4 +305,5 @@ public:
m_enable_lightoff_ac = ( ( i2 != 0 ) ? config.readNumEntry ( "LightOffAC", 1 ) : false );
m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 );
+ m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 );
if ( !i1 && !i2 && !i3 )
@@ -373,4 +378,5 @@ private:
bool m_enable_lightoff_ac;
bool m_enable_onlylcdoff_ac;
+ bool m_disable_apm_ac;
bool m_lcd_status;