Skip to content
Browse files

[pvr] allow pvr add-ons to be uninstalled again

  • Loading branch information...
1 parent c909a29 commit a38d8aaf85e4bf97db95a5aff27b26a39e0155da @opdenkamp opdenkamp committed Dec 31, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 xbmc/addons/GUIDialogAddonInfo.cpp
View
3 xbmc/addons/GUIDialogAddonInfo.cpp
@@ -149,13 +149,12 @@ void CGUIDialogAddonInfo::UpdateControls()
GrabRollbackVersions();
// TODO: System addons should be able to be disabled
- // TODO: the following line will have to be changed later, when the PVR add-ons are no longer part of our source tree
bool isPVR = isInstalled && m_localAddon->Type() == ADDON_PVRDLL;
bool canDisable = isInstalled && (!isSystem || isPVR) && !m_localAddon->IsInUse();
bool canInstall = !isInstalled && m_item->GetProperty("Addon.Broken").empty();
bool isRepo = (isInstalled && m_localAddon->Type() == ADDON_REPOSITORY) || (m_addon && m_addon->Type() == ADDON_REPOSITORY);
- CONTROL_ENABLE_ON_CONDITION(CONTROL_BTN_INSTALL, (canDisable || canInstall) && !isPVR);
+ CONTROL_ENABLE_ON_CONDITION(CONTROL_BTN_INSTALL, canDisable || canInstall);
SET_CONTROL_LABEL(CONTROL_BTN_INSTALL, isInstalled ? 24037 : 24038);
CONTROL_ENABLE_ON_CONDITION(CONTROL_BTN_ENABLE, canDisable);

0 comments on commit a38d8aa

Please sign in to comment.
Something went wrong with that request. Please try again.