remove a piece of code that was overwriting statusbar without any checks

maybe it made a difference in the past, but it's redundant now.
This commit is contained in:
Andrzej Rybczak
2009-11-13 19:34:08 +01:00
parent 3365b066c3
commit fdb9bfcd4f

View File

@@ -360,14 +360,13 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
{
if (!Config.execute_on_song_change.empty())
system(Config.execute_on_song_change.c_str());
if (Mpd.isPlaying() && !(np = Mpd.GetCurrentSong()).Empty())
WindowTitle(utf_to_locale_cpy(np.toString(Config.song_window_title_format)));
if (Config.autocenter_mode && !myPlaylist->Items->isFiltered())
myPlaylist->Items->Highlight(myPlaylist->NowPlaying);
if (!Mpd.GetElapsedTime())
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());
if (Config.now_playing_lyrics && !Mpd.GetSingle() && myScreen == myLyrics && myOldScreen == myPlaylist)
Lyrics::Reload = 1;
}