From 637e82f56640e95d3d46f7970f8dc833cbfc1f84 Mon Sep 17 00:00:00 2001 From: chani Date: Sun, 28 Dec 2008 23:24:11 +0000 Subject: [PATCH] hide the active-opacity slider when there's no composite, because it's useless then the idle one isn't hidden - it can go all the way down to 0, so it's still semi-useful. I wonder if this will confuse users... git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase@902691 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- workspace/plasma/shells/screensaver/backgrounddialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workspace/plasma/shells/screensaver/backgrounddialog.cpp b/workspace/plasma/shells/screensaver/backgrounddialog.cpp index 94e0059cce..e644f742c4 100644 --- a/workspace/plasma/shells/screensaver/backgrounddialog.cpp +++ b/workspace/plasma/shells/screensaver/backgrounddialog.cpp @@ -99,6 +99,9 @@ void BackgroundDialog::reloadConfig() m_activeSlider->setValue(PlasmaApp::self()->activeOpacity() * 10); m_idleSlider->setValue(PlasmaApp::self()->idleOpacity() * 10); + label->setVisible(PlasmaApp::hasComposite()); + m_activeSlider->setVisible(PlasmaApp::hasComposite()); + // Wallpaper disconnect(m_wallpaperMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changeBackgroundMode(int))); int wallpaperIndex = 0; -- 2.11.4.GIT