Commit c3982cfb authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Tomaz Canabrava
Browse files

Show display title in notifications

Makes it easier to identify the tab the notification came from, rather than
the usual "Session Default" or "Session Profile 1"
parent 8cd1dd05
......@@ -118,7 +118,7 @@ Session::Session(QObject* parent) :
connect(_emulation, &Konsole::Emulation::sessionAttributeChanged, this, &Konsole::Session::setSessionAttribute);
connect(_emulation, &Konsole::Emulation::bell, this, [this]() {
Q_EMIT bellRequest(i18n("Bell in session '%1'", _nameTitle));
Q_EMIT bellRequest(i18n("Bell in '%1' (Session '%2')", _displayTitle, _nameTitle));
this->setPendingNotification(Notification::Bell);
});
connect(_emulation, &Konsole::Emulation::zmodemDownloadDetected, this, &Konsole::Session::fireZModemDownloadDetected);
......@@ -655,7 +655,7 @@ void Session::silenceTimerDone()
}
KNotification::event(hasFocus() ? QStringLiteral("Silence") : QStringLiteral("SilenceHidden"),
i18n("Silence in session '%1'", _nameTitle), QPixmap(),
i18n("Silence in '%1' (Session '%2')", _displayTitle, _nameTitle), QPixmap(),
QApplication::activeWindow(),
KNotification::CloseWhenWidgetActivated);
setPendingNotification(Notification::Silence);
......@@ -1741,7 +1741,7 @@ void Session::handleActivity()
if (_monitorActivity && !_notifiedActivity) {
KNotification::event(hasFocus() ? QStringLiteral("Activity") : QStringLiteral("ActivityHidden"),
i18n("Activity in session '%1'", _nameTitle), QPixmap(),
i18n("Activity in '%1' (Session '%2')", _displayTitle, _nameTitle), QPixmap(),
QApplication::activeWindow(),
KNotification::CloseWhenWidgetActivated);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment