Commit 3ce487a1 authored by Thomas Surrel's avatar Thomas Surrel Committed by Albert Vaca Cintora

Add new notifications at the top of the list

Summary:
This will show a list with the most recent notifications at the top, in the
plasmoid.

This is more consistent with the KDE notification plasmoid that stack them like
this too.

Reviewers: apol, #kde_connect

Reviewed By: apol, #kde_connect

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D13540
parent b28fa998
......@@ -102,10 +102,9 @@ void NotificationsModel::setDeviceId(const QString& deviceId)
void NotificationsModel::notificationAdded(const QString& id)
{
int currentSize = m_notificationList.size();
beginInsertRows(QModelIndex(), currentSize, currentSize);
beginInsertRows(QModelIndex(), 0, 0);
NotificationDbusInterface* dbusInterface = new NotificationDbusInterface(m_deviceId, id, this);
m_notificationList.append(dbusInterface);
m_notificationList.prepend(dbusInterface);
endInsertRows();
}
......
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