Wetterdienst: Hover Bugfix
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user