mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
44e5ed6bbf
commit
6c0898fab2
3 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ PlasmaComponents.Label {
|
|||
Connections {
|
||||
target: clockSource
|
||||
// clock time changed
|
||||
function timeChanged() {
|
||||
function onTimeChanged() {
|
||||
ageLabel.updateAgoText()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue