get info about state of new connection after reconecting with idle mode active

master
Andrzej Rybczak 16 years ago
parent 3b39d417a1
commit 37c7acfd3c
  1. 6
      src/ncmpcpp.cpp

@ -335,7 +335,13 @@ int main(int argc, char *argv[])
{
ShowMessage("Connected to %s!", Mpd.GetHostname().c_str());
if (Mpd.SupportsIdle())
{
wFooter->AddFDCallback(Mpd.GetFD(), StatusbarMPDCallback);
Mpd.OrderDataFetching(); // we need info about new connection
}
// we want everything updated after reconnect, no blocking.
Playlist::BlockUpdate = 0;
Global::BlockItemListUpdate = 0;
MessagesAllowed = 0;
UpdateStatusImmediately = 1;
# ifdef ENABLE_VISUALIZER

Loading…
Cancel
Save