From 56e09afdae21ae6f7bfac2c4ad18bab5deaed650 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 18 Jan 2022 23:55:41 +0100 Subject: [PATCH] weather-setup: add country to hint text Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3b2413353d2338018f672c4be17dfaed8f3a6ce9 Author: vanhofen Date: 2022-01-18 (Tue, 18 Jan 2022) Origin message was: ------------------ - weather-setup: add country to hint text ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/weather_setup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/weather_setup.cpp b/src/gui/weather_setup.cpp index 34f3871ec..b8b83650d 100644 --- a/src/gui/weather_setup.cpp +++ b/src/gui/weather_setup.cpp @@ -121,8 +121,12 @@ int CWeatherSetup::showSelectWeatherLocation() CMenuForwarder *mf; for (size_t i = 0; i < locations.size(); i++) { + std::string hint = locations[i].country; + hint += ": "; + hint += locations[i].coords.c_str(); + mf = new CMenuForwarder(locations[i].city, true, NULL, selector, to_string(i).c_str()); - mf->setHint(NEUTRINO_ICON_HINT_SETTINGS, locations[i].coords.c_str()); + mf->setHint(NEUTRINO_ICON_HINT_SETTINGS, hint); m->addItem(mf); }