mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-12-05 14:21:55 +00:00
Only reload weather data for location if the location weather forecast isn't already previewed
This commit is contained in:
parent
015bd0426c
commit
de0692bba6
@ -92,7 +92,9 @@ class WeatherAppViewModel(
|
|||||||
selectedLocationIndex.value = myLocations.value.lastIndex
|
selectedLocationIndex.value = myLocations.value.lastIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
onReloadWeatherForecast()
|
if (_weatherForecast.value.location != locationToAdd) {
|
||||||
|
onReloadWeatherForecast()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDeleteLocation(locationToDelete: Location) {
|
override fun onDeleteLocation(locationToDelete: Location) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user