From 530a238e0b570d483e640b05e717ba3c5fe9f65d Mon Sep 17 00:00:00 2001 From: Symeon Huang Date: Mon, 10 Aug 2020 21:19:07 +0100 Subject: [PATCH] Add a button to manually refresh the data --- plasmoid/contents/ui/main.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index 4a4692b..3e233a2 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -83,6 +83,18 @@ Item { Layout.fillWidth: true text: stack.currentPage.title } + PlasmaComponents3.ToolButton { + visible: stack.depth === 1 + icon.name: "view-refresh" + onClicked: { + timer.restart(); + root.refresh(); + } + + PlasmaComponents3.ToolTip { + text: "Refresh the data" + } + } PlasmaComponents3.ToolButton { visible: stack.depth > 1 icon.name: "draw-arrow-back"