We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcac564 + da01f20 commit 8617d80Copy full SHA for 8617d80
xbmc/profiles/windows/GUIWindowSettingsProfile.cpp
@@ -204,6 +204,7 @@ void CGUIWindowSettingsProfile::LoadList()
204
ClearListItems();
205
206
const std::shared_ptr<CProfileManager> profileManager = CServiceBroker::GetSettingsComponent()->GetProfileManager();
207
+ const int currentProfileId = profileManager->GetCurrentProfileId();
208
209
for (unsigned int i = 0; i < profileManager->GetNumberOfProfiles(); i++)
210
{
@@ -214,6 +215,7 @@ void CGUIWindowSettingsProfile::LoadList()
214
215
item->SetOverlayImage(profile->getLockMode() == LockMode::EVERYONE
216
? CGUIListItem::ICON_OVERLAY_NONE
217
: CGUIListItem::ICON_OVERLAY_LOCKED);
218
+ item->Select(profile->getId() == currentProfileId);
219
m_listItems->Add(item);
220
}
221
0 commit comments