From 6c0898fab2c8e9a9628afde6cb1345d957dd6ffb Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 24 Nov 2025 18:22:36 -0500 Subject: [PATCH] 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 --- .../qml/actiondrawer/private/LandscapeContentContainer.qml | 1 - .../qml/widgets/notifications/NotificationTimeText.qml | 2 +- .../qml/widgets/notifications/NotificationsWidget.qml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/actiondrawer/private/LandscapeContentContainer.qml b/components/mobileshell/qml/actiondrawer/private/LandscapeContentContainer.qml index 2d4316a5..413a6bd7 100644 --- a/components/mobileshell/qml/actiondrawer/private/LandscapeContentContainer.qml +++ b/components/mobileshell/qml/actiondrawer/private/LandscapeContentContainer.qml @@ -9,7 +9,6 @@ import QtQuick.Window import org.kde.kirigami 2.12 as Kirigami 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.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings diff --git a/components/mobileshell/qml/widgets/notifications/NotificationTimeText.qml b/components/mobileshell/qml/widgets/notifications/NotificationTimeText.qml index 3a655ae0..56ada76b 100644 --- a/components/mobileshell/qml/widgets/notifications/NotificationTimeText.qml +++ b/components/mobileshell/qml/widgets/notifications/NotificationTimeText.qml @@ -34,7 +34,7 @@ PlasmaComponents.Label { Connections { target: clockSource // clock time changed - function timeChanged() { + function onTimeChanged() { ageLabel.updateAgoText() } } diff --git a/components/mobileshell/qml/widgets/notifications/NotificationsWidget.qml b/components/mobileshell/qml/widgets/notifications/NotificationsWidget.qml index a58919ab..d489b9d2 100644 --- a/components/mobileshell/qml/widgets/notifications/NotificationsWidget.qml +++ b/components/mobileshell/qml/widgets/notifications/NotificationsWidget.qml @@ -177,7 +177,7 @@ Item { } Clock { - id: clockSource + id: clock } ListView { @@ -382,7 +382,7 @@ Item { modelIndex: delegateLoader.index notificationsModel: root.historyModel notificationsModelType: root.historyModelType - clockSource: clockSource + clockSource: clock requestToInvoke: root.actionsRequireUnlock onRunActionRequested: {