mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-12-05 06:11:52 +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,8 +92,10 @@ class WeatherAppViewModel(
|
||||
selectedLocationIndex.value = myLocations.value.lastIndex
|
||||
}
|
||||
|
||||
if (_weatherForecast.value.location != locationToAdd) {
|
||||
onReloadWeatherForecast()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDeleteLocation(locationToDelete: Location) {
|
||||
myLocations.value -= locationToDelete
|
||||
|
||||
Loading…
Reference in New Issue
Block a user