Skip to content

Commit

Permalink
do not restart visualization if it has no settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fedchin authored and popcornmix committed Jun 25, 2015
1 parent 33db93e commit f025385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/interfaces/Builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,8 +1760,8 @@ int CBuiltins::Execute(const std::string& execString)
ADDON::TYPE type = TranslateType(params[0]);
if (CAddonMgr::Get().GetDefault(type, addon))
{
CGUIDialogAddonSettings::ShowAndGetInput(addon);
if (type == ADDON_VIZ)
bool changed = CGUIDialogAddonSettings::ShowAndGetInput(addon);
if (type == ADDON_VIZ && changed)
g_windowManager.SendMessage(GUI_MSG_VISUALISATION_RELOAD, 0, 0);
}
}
Expand Down

0 comments on commit f025385

Please sign in to comment.