Skip to content

Commit 8617d80

Browse files
authored
Merge pull request xbmc#27515 from CastagnaIT/profile_highlight
[GUIWindowSettingsProfile] Highlight selected profile
2 parents bcac564 + da01f20 commit 8617d80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xbmc/profiles/windows/GUIWindowSettingsProfile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ void CGUIWindowSettingsProfile::LoadList()
204204
ClearListItems();
205205

206206
const std::shared_ptr<CProfileManager> profileManager = CServiceBroker::GetSettingsComponent()->GetProfileManager();
207+
const int currentProfileId = profileManager->GetCurrentProfileId();
207208

208209
for (unsigned int i = 0; i < profileManager->GetNumberOfProfiles(); i++)
209210
{
@@ -214,6 +215,7 @@ void CGUIWindowSettingsProfile::LoadList()
214215
item->SetOverlayImage(profile->getLockMode() == LockMode::EVERYONE
215216
? CGUIListItem::ICON_OVERLAY_NONE
216217
: CGUIListItem::ICON_OVERLAY_LOCKED);
218+
item->Select(profile->getId() == currentProfileId);
217219
m_listItems->Add(item);
218220
}
219221
{

0 commit comments

Comments
 (0)