feat(ActivityCenter): Force sorting notifications by timespamp
Close #7492
This commit is contained in:
parent
a209d39881
commit
ced2454bdc
|
@ -148,6 +148,13 @@ Popup {
|
||||||
|
|
||||||
filters: ExpressionFilter { expression: filterActivityCategories(model.notificationType) &&
|
filters: ExpressionFilter { expression: filterActivityCategories(model.notificationType) &&
|
||||||
!(acStore.hideReadNotifications && model.read) }
|
!(acStore.hideReadNotifications && model.read) }
|
||||||
|
|
||||||
|
sorters: [
|
||||||
|
RoleSorter {
|
||||||
|
roleName: "timestamp"
|
||||||
|
sortOrder: Qt.DescendingOrder
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: DelegateChooser {
|
delegate: DelegateChooser {
|
||||||
|
@ -161,7 +168,7 @@ Popup {
|
||||||
store: root.store
|
store: root.store
|
||||||
notification: model
|
notification: model
|
||||||
messageContextMenu: root.messageContextMenu
|
messageContextMenu: root.messageContextMenu
|
||||||
previousNotificationIndex: Math.max(0, index - 1)
|
previousNotificationIndex: Math.min(listView.count - 1, index + 1)
|
||||||
onActivityCenterClose: root.close()
|
onActivityCenterClose: root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,7 +180,7 @@ Popup {
|
||||||
store: root.store
|
store: root.store
|
||||||
notification: model
|
notification: model
|
||||||
messageContextMenu: root.messageContextMenu
|
messageContextMenu: root.messageContextMenu
|
||||||
previousNotificationIndex: Math.max(0, index - 1)
|
previousNotificationIndex: Math.min(listView.count - 1, index + 1)
|
||||||
onActivityCenterClose: root.close()
|
onActivityCenterClose: root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -185,7 +192,7 @@ Popup {
|
||||||
store: root.store
|
store: root.store
|
||||||
notification: model
|
notification: model
|
||||||
messageContextMenu: root.messageContextMenu
|
messageContextMenu: root.messageContextMenu
|
||||||
previousNotificationIndex: Math.max(0, index - 1)
|
previousNotificationIndex: Math.min(listView.count - 1, index + 1)
|
||||||
onActivityCenterClose: root.close()
|
onActivityCenterClose: root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue