mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
@@ -1,9 +1,9 @@
|
|||||||
configdir = $(CONFIGDIR)
|
configdir = $(CONFIGDIR)
|
||||||
|
|
||||||
config_DATA = \
|
config_DATA = \
|
||||||
weather_favorites.xml
|
weather-favorites.xml
|
||||||
|
|
||||||
weatherdir = $(DATADIR)/neutrino/weather
|
weatherdir = $(DATADIR)/neutrino/weather
|
||||||
|
|
||||||
weather_DATA = \
|
weather_DATA = \
|
||||||
weather_locations.xml
|
weather-locations.xml
|
||||||
|
@@ -43,8 +43,8 @@ CWeatherSetup::CWeatherSetup()
|
|||||||
selected = -1;
|
selected = -1;
|
||||||
|
|
||||||
locations.clear();
|
locations.clear();
|
||||||
loadLocations(CONFIGDIR "/weather_favorites.xml");
|
loadLocations(CONFIGDIR "/weather-favorites.xml");
|
||||||
loadLocations(WEATHERDIR "/weather_locations.xml");
|
loadLocations(WEATHERDIR "/weather-locations.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
CWeatherSetup::~CWeatherSetup()
|
CWeatherSetup::~CWeatherSetup()
|
||||||
@@ -103,7 +103,8 @@ int CWeatherSetup::showSelectWeatherLocation()
|
|||||||
|
|
||||||
if (locations.empty())
|
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_location = "52.52,13.40";
|
||||||
g_settings.weather_city = "Berlin";
|
g_settings.weather_city = "Berlin";
|
||||||
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);
|
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);
|
||||||
|
Reference in New Issue
Block a user