hide the icon when we are in the desktop
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845463
This commit is contained in:
parent
5f27b7bb30
commit
3e3b1450f9
@ -142,6 +142,10 @@ void PopupApplet::constraintsEvent(Plasma::Constraints constraints)
|
||||
switch (formFactor()) {
|
||||
case Plasma::Planar:
|
||||
case Plasma::MediaCenter: {
|
||||
if (d->icon) {
|
||||
d->icon->hide();
|
||||
}
|
||||
|
||||
if (d->savedAspectRatio != Plasma::InvalidAspectRatioMode) {
|
||||
setAspectRatioMode(d->savedAspectRatio);
|
||||
}
|
||||
@ -182,6 +186,10 @@ void PopupApplet::constraintsEvent(Plasma::Constraints constraints)
|
||||
d->savedAspectRatio = aspectRatioMode();
|
||||
setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
|
||||
if (d->icon) {
|
||||
d->icon->show();
|
||||
}
|
||||
|
||||
if (d->proxy) {
|
||||
d->proxy->setWidget(0); // prevent it from deleting our widget!
|
||||
delete d->proxy;
|
||||
|
Loading…
Reference in New Issue
Block a user