bar: weather: refresh on click

This commit is contained in:
end-4
2025-08-19 22:02:07 +07:00
parent 6f907f7961
commit 222f083322
@@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
import qs.modules.common
import qs.modules.common.widgets
import qs.services
import qs
import Quickshell
import QtQuick
import QtQuick.Layouts
@@ -15,6 +16,15 @@ MouseArea {
hoverEnabled: true
onClicked: {
Weather.getData();
Quickshell.execDetached(["notify-send",
Translation.tr("Weather"),
Translation.tr("Refreshing (manually triggered)")
, "-a", "Shell"
])
}
RowLayout {
id: rowLayout
anchors.centerIn: parent