app: Add Refresh action
This commit is contained in:
parent
251ea971c5
commit
99a2363366
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue