Give undo notifications a title
The "Plasma" (default put in there by the notification applet because it has no title) is not really descriptive. REVIEW: 121071
This commit is contained in:
parent
23b590b90c
commit
5e17e3fd1c
@ -241,11 +241,14 @@ void AppletPrivate::askDestroy()
|
||||
Plasma::Containment *asContainment = qobject_cast<Plasma::Containment *>(q);
|
||||
|
||||
if (!q->isContainment()) {
|
||||
deleteNotification->setTitle(i18n("Widget Removed"));
|
||||
deleteNotification->setText(i18n("The widget \"%1\" has been removed.", q->title()));
|
||||
} else if (asContainment && (asContainment->containmentType() == Types::PanelContainment || asContainment->containmentType() == Types::CustomPanelContainment)) {
|
||||
deleteNotification->setTitle(i18n("Panel Removed"));
|
||||
deleteNotification->setText(i18n("A Panel has been removed."));
|
||||
//This will never happen with our current shell, but could with a custom one
|
||||
} else {
|
||||
deleteNotification->setTitle(i18n("Desktop Removed"));
|
||||
deleteNotification->setText(i18n("A Desktop has been removed."));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user