From 222f08332242dacafc9ebca11a7a8e5fb0d31fac Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:02:07 +0700 Subject: [PATCH] bar: weather: refresh on click --- .../quickshell/ii/modules/bar/weather/WeatherBar.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml b/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml index 63fd1f5d4..13c3ef7fe 100644 --- a/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml +++ b/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml @@ -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