forked from Shinonome/dots-hyprland
bar: weather: refresh on click
This commit is contained in:
@@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
|
|||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
import qs.modules.common.widgets
|
import qs.modules.common.widgets
|
||||||
import qs.services
|
import qs.services
|
||||||
|
import qs
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
@@ -15,6 +16,15 @@ MouseArea {
|
|||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
Weather.getData();
|
||||||
|
Quickshell.execDetached(["notify-send",
|
||||||
|
Translation.tr("Weather"),
|
||||||
|
Translation.tr("Refreshing (manually triggered)")
|
||||||
|
, "-a", "Shell"
|
||||||
|
])
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user