weather: rename xml files

Origin commit data
------------------
Branch: ni/coolstream
Commit: c3e5bef1b0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-18 (Tue, 18 Jan 2022)

Origin message was:
------------------
- weather: rename xml files

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-18 23:31:53 +01:00
parent adacccb63b
commit 9ad3fc7e30
4 changed files with 6 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
configdir = $(CONFIGDIR)
config_DATA = \
weather_favorites.xml
weather-favorites.xml
weatherdir = $(DATADIR)/neutrino/weather
weather_DATA = \
weather_locations.xml
weather-locations.xml

View File

@@ -43,8 +43,8 @@ CWeatherSetup::CWeatherSetup()
selected = -1;
locations.clear();
loadLocations(CONFIGDIR "/weather_favorites.xml");
loadLocations(WEATHERDIR "/weather_locations.xml");
loadLocations(CONFIGDIR "/weather-favorites.xml");
loadLocations(WEATHERDIR "/weather-locations.xml");
}
CWeatherSetup::~CWeatherSetup()
@@ -103,7 +103,8 @@ int CWeatherSetup::showSelectWeatherLocation()
if (locations.empty())
{
ShowHint("Warning", "Failed to load weather_locations.xml\nPlease press any key or wait some seconds! ...", 700, 10, NULL, NEUTRINO_ICON_HINT_IMAGEINFO, CComponentsHeader::CC_BTN_EXIT);
// TODO: localize hint
ShowHint("Warning", "Failed to load weather-favorites.xml or weather-locations.xml\nPlease press any key or wait some seconds! ...", 700, 10, NULL, NEUTRINO_ICON_HINT_IMAGEINFO, CComponentsHeader::CC_BTN_EXIT);
g_settings.weather_location = "52.52,13.40";
g_settings.weather_city = "Berlin";
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);