summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-23 22:48:00 (UTC)
committer harlekin <harlekin>2002-10-23 22:48:00 (UTC)
commit2e08979f61e2008fed1a9deca6f3995795ef46e4 (patch) (side-by-side diff)
tree1cba694f8855819f338e75be1f374ca00156cb70
parent12c59f8b81dc83ec3a5b71f31dcdfeb9ba7d3002 (diff)
downloadopie-2e08979f61e2008fed1a9deca6f3995795ef46e4.zip
opie-2e08979f61e2008fed1a9deca6f3995795ef46e4.tar.gz
opie-2e08979f61e2008fed1a9deca6f3995795ef46e4.tar.bz2
load ac settings on startup
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/desktop.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 986ae5d..2ea6d27 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -306,24 +306,25 @@ public:
m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 );
m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 );
if ( !i1 && !i2 && !i3 )
QWSServer::setScreenSaverInterval( 0 );
else
QWSServer::setScreenSaverIntervals( v );
}
void setInterval ( int interval )
{
setIntervals ( -1, -1, interval );
+ setIntervalsAC ( -1, -1, interval );
}
void setMode ( int mode )
{
if ( mode > m_disable_suspend )
setInterval( -1 );
m_disable_suspend = mode;
}
void setBacklight ( int bright )
{
// Read from config