Skip to content

Commit

Permalink
Add server name option for shared libraries in home menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat authored and Kwiboo committed Mar 16, 2017
1 parent 8937e29 commit a4edc4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions language/English_plex/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -1255,3 +1255,7 @@ msgstr "2160p"
msgctxt "#52646"
msgid "Unlimited"
msgstr "Unlimited"

msgctxt "#52647"
msgid "Show server name for all libraries"
msgstr "Show server name for all libraries"
2 changes: 1 addition & 1 deletion plex/Home/GUIWindowHome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ CGUIStaticItemPtr CGUIWindowHome::ItemToSection(CFileItemPtr item)
{
CGUIStaticItemPtr newItem = CGUIStaticItemPtr(new CGUIStaticItem);
newItem->SetLabel(item->GetLabel());
if (item->HasProperty("serverOwner"))
if (item->HasProperty("serverOwner") && !g_guiSettings.GetBool("myplex.servernameshared"))
newItem->SetLabel2(item->GetProperty("serverOwner").asString());
else
newItem->SetLabel2(item->GetProperty("serverName").asString());
Expand Down
1 change: 1 addition & 0 deletions plex/Owned/GUISettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ void CGUISettings::Initialize()
// Plex "Appearance" General
CSettingsCategory* glaf = AddCategory(SETTINGS_APPEARANCE, "myplex", 128);
AddBool(glaf, "myplex.sharedsectionsonhome", 52209, false);
AddBool(glaf, "myplex.servernameshared", 52647, false);
AddBool(glaf, "myplex.recentlywatched", 52212, false);
AddBool(glaf, "myplex.recentlystacked", 52218, false);
AddBool(glaf, "myplex.enablequeueandrec", 52210, true);
Expand Down

0 comments on commit a4edc4f

Please sign in to comment.