settings: add support for displaying current mpd host in playlist
This commit is contained in:
@@ -105,6 +105,12 @@ void Playlist::resize()
|
||||
std::wstring Playlist::title()
|
||||
{
|
||||
std::wstring result = L"Playlist ";
|
||||
if (Config.playlist_show_mpd_host)
|
||||
{
|
||||
result += L"on ";
|
||||
result += ToWString(Mpd.GetHostname());
|
||||
result += L" ";
|
||||
}
|
||||
if (m_reload_total_length || m_reload_remaining)
|
||||
m_stats = getTotalLength();
|
||||
result += Scroller(ToWString(m_stats), m_scroll_begin, COLS-result.length()-(Config.design == Design::Alternative ? 2 : Global::VolumeState.length()));
|
||||
|
||||
Reference in New Issue
Block a user