app: Add Refresh action

This commit is contained in:
Carl Schwan 2024-10-05 20:18:51 +02:00
parent 251ea971c5
commit 99a2363366
No known key found for this signature in database
GPG key ID: 02325448204E452A

View file

@ -28,6 +28,15 @@ Kirigami.ScrollablePage
refreshResetTimer.start() refreshResetTimer.start()
} }
actions: Kirigami.Action {
text: i18nc("@action:intoolbar", "Refresh")
icon.name: 'view-refresh-symbolic'
onTrigerred: {
DaemonDbusInterface.forceOnNetworkChange()
refreshResetTimer.start()
}
}
Timer { Timer {
id: refreshResetTimer id: refreshResetTimer
interval: 1000 interval: 1000