Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Add a button to manually refresh the data
Browse files Browse the repository at this point in the history
  • Loading branch information
librehat committed Aug 10, 2020
1 parent b3a8a15 commit 530a238
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plasmoid/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 530a238

Please sign in to comment.