Skip to content

Commit

Permalink
[settings] support <close> attribute in action button <control>
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Sep 21, 2019
1 parent 35e6ca1 commit 6a56570
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/settings/SettingControl.cpp
Expand Up @@ -138,7 +138,13 @@ bool CSettingControlButton::Deserialize(const TiXmlNode *node, bool update /* =
XMLUtils::GetInt(node, SETTING_XML_ELM_CONTROL_HEADING, m_heading);
XMLUtils::GetBoolean(node, SETTING_XML_ELM_CONTROL_HIDEVALUE, m_hideValue);

if (m_format == "addon")
if (m_format == "action")
{
bool closeDialog = false;
if (XMLUtils::GetBoolean(node, "close", closeDialog))
m_closeDialog = closeDialog;
}
else if (m_format == "addon")
{
std::string strShowAddons;
if (XMLUtils::GetString(node, "show", strShowAddons) && !strShowAddons.empty())
Expand Down

0 comments on commit 6a56570

Please sign in to comment.