mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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.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
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue