Skip to content
Permalink
Browse files

rev

  • Loading branch information
ronie committed May 20, 2016
1 parent 578e9d5 commit ef0c3cbcc0ee9748735d9111b4f4c65fecb6d797
Showing with 3 additions and 9 deletions.
  1. +1 −1 xbmc/addons/AddonDll.h
  2. +2 −8 xbmc/addons/GUIDialogAddonSettings.cpp
@@ -496,7 +496,7 @@ ADDON_STATUS CAddonDll<TheDll, TheStruct, TheProps>::TransferSettings()
type == "executable" || type == "file" ||
type == "action" || type == "date" ||
type == "time" || type == "select" ||
type == "addon" || type == "labelenum" ||
type == "addon" ||
type == "fileenum" )
{
status = m_pDll->SetSetting(id, (const char*) GetSetting(id).c_str());
@@ -531,7 +531,7 @@ void CGUIDialogAddonSettings::UpdateFromControls()
value = ((CGUIRadioButtonControl*) control)->IsSelected() ? "true" : "false";
break;
case CGUIControl::GUICONTROL_SPINEX:
if (type == "fileenum" || type == "labelenum")
if (type == "fileenum")
value = ((CGUISpinControlEx*) control)->GetLabel();
else
value = StringUtils::Format("%i", ((CGUISpinControlEx*) control)->GetValue());
@@ -792,13 +792,7 @@ void CGUIDialogAddonSettings::CreateControls()
else
((CGUISpinControlEx *)pControl)->AddLabel(valuesVec[i], iAdd);
}
if (type == "labelenum")
{ // need to run through all our settings and find the one that matches
((CGUISpinControlEx*) pControl)->SetValueFromLabel(m_settings[id]);
}
else
((CGUISpinControlEx*) pControl)->SetValue(atoi(m_settings[id].c_str()));

((CGUISpinControlEx*) pControl)->SetValue(atoi(m_settings[id].c_str()));
}
else if (type == "fileenum" && !id.empty())
{

0 comments on commit ef0c3cb

Please sign in to comment.
You can’t perform that action at this time.