toggle on activation
This commit is contained in:
parent
bb551f7c00
commit
b4b0fc207a
@ -440,8 +440,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
|
||||
void PopupAppletPrivate::appletActivated()
|
||||
{
|
||||
q->setStatus(Plasma::NeedsAttentionStatus);
|
||||
q->showPopup();
|
||||
internalTogglePopup();
|
||||
}
|
||||
|
||||
QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
|
||||
@ -806,10 +805,7 @@ void PopupAppletPrivate::dialogSizeChanged()
|
||||
|
||||
void PopupAppletPrivate::dialogStatusChanged(bool status)
|
||||
{
|
||||
if (!status) {
|
||||
q->setStatus(PassiveStatus);
|
||||
}
|
||||
|
||||
q->setStatus(status ? NeedsAttentionStatus : PassiveStatus);
|
||||
q->popupEvent(status);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user