Wetterdienst: Hover Bugfix

This commit is contained in:
2026-08-23 21:51:26 +02:00
parent 83a430f8ee
commit 788ae6ad32
4 changed files with 39 additions and 6 deletions
@@ -783,8 +783,16 @@ public partial class WeekCellItem : ObservableObject
[ObservableProperty] private string _weatherTooltip = "";
[ObservableProperty] private bool _hasWeatherWarning;
public bool HasWeather => WeatherSymbol.Length > 0;
public bool HasWeatherInformation => HasWeather || HasWeatherWarning;
partial void OnWeatherSymbolChanged(string value) => OnPropertyChanged(nameof(HasWeather));
partial void OnWeatherSymbolChanged(string value)
{
OnPropertyChanged(nameof(HasWeather));
OnPropertyChanged(nameof(HasWeatherInformation));
}
partial void OnHasWeatherWarningChanged(bool value) =>
OnPropertyChanged(nameof(HasWeatherInformation));
public void SetWeather(SchoolDayWeatherSummary? summary, IReadOnlyList<WeatherWarning> warnings)
{