Skip to content

Fix: Added shortcut for toggling hourly and daily view

Eshaan Modi requested to merge NightFury742/gnome-weather:issue346 into main

data/weather-widget.ui: Added GtkShortcutController for activating the action

Allow toggling between Hourly and Daily view with Ctrl + 1.

Currently there is no shortcut for toggling the hourly and daily view.

To fix this, created an action (switchViewAction) which changes the visible_child_name of forecastStack and added a GtkShortcutController to toggle it.

#346

Merge request reports