notifications: Fix timestamp not working

Fix notification timestamps not working and always showing "now",
fallout from https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/847
This commit is contained in:
Devin Lin 2025-11-24 18:22:36 -05:00
parent 44e5ed6bbf
commit 6c0898fab2
3 changed files with 3 additions and 4 deletions

View file

@ -9,7 +9,6 @@ import QtQuick.Window
import org.kde.kirigami 2.12 as Kirigami import org.kde.kirigami 2.12 as Kirigami
import org.kde.plasma.core as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.plasma5support 2.0 as P5Support
import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.plasma.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell as MobileShell
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings

View file

@ -34,7 +34,7 @@ PlasmaComponents.Label {
Connections { Connections {
target: clockSource target: clockSource
// clock time changed // clock time changed
function timeChanged() { function onTimeChanged() {
ageLabel.updateAgoText() ageLabel.updateAgoText()
} }
} }

View file

@ -177,7 +177,7 @@ Item {
} }
Clock { Clock {
id: clockSource id: clock
} }
ListView { ListView {
@ -382,7 +382,7 @@ Item {
modelIndex: delegateLoader.index modelIndex: delegateLoader.index
notificationsModel: root.historyModel notificationsModel: root.historyModel
notificationsModelType: root.historyModelType notificationsModelType: root.historyModelType
clockSource: clockSource clockSource: clock
requestToInvoke: root.actionsRequireUnlock requestToInvoke: root.actionsRequireUnlock
onRunActionRequested: { onRunActionRequested: {