Skip to content
This repository

WeatherProviderLogo property cleanup #3450

Merged
merged 1 commit into from 9 months ago

3 participants

Zeljko Ametovic Martijn Kaijser ronie
Zeljko Ametovic
Collaborator
Martijn Kaijser

@amet
do we clear the rest of the properties as well? on second thought how much of this is still handled really in core as we moved to addons for weather (maybe it indeed better to get addons clean up as you first suggested)?

Zeljko Ametovic
Collaborator

@MartijnKaijser we then need to rely on addon author to do it properly. I think I like it like this better.. we have the control over it.

other properties are cleaned on refresh/update

ronie
Collaborator

tested and works ok.

Martijn Kaijser MartijnKaijser merged commit 8647a8e into from
Zeljko Ametovic amet deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 18, 2013
Zeljko Ametovic amet WeatherProviderLogo property cleanup b325a79
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 xbmc/utils/Weather.cpp
5 xbmc/utils/Weather.cpp
@@ -491,7 +491,12 @@ void CWeather::OnSettingChanged(const CSetting *setting)
491 491
492 492 const std::string settingId = setting->GetId();
493 493 if (settingId == "weather.addon")
  494 + {
  495 + // clear "WeatherProviderLogo" property that some weather addons set
  496 + CGUIWindow* window = g_windowManager.GetWindow(WINDOW_WEATHER);
  497 + window->SetProperty("WeatherProviderLogo", "");;
494 498 Refresh();
  499 + }
495 500 }
496 501
497 502 void CWeather::OnSettingAction(const CSetting *setting)

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.