invoke callback immediately after sending update command succesfully

master
Andrzej Rybczak 17 years ago
parent ab265f2fdf
commit 9270a83a78
  1. 5
      src/mpdpp.cpp
  2. 1
      src/ncmpcpp.cpp

@ -192,7 +192,12 @@ void Connection::UpdateDirectory(const string &path)
mpd_sendUpdateCommand(itsConnection, path.c_str());
mpd_finishCommand(itsConnection);
if (!itsConnection->error)
{
itsCurrentStatus->updatingDb = 1;
StatusChanges ch;
ch.DBUpdating = 1;
itsUpdater(this, ch, itsErrorHandlerUserdata);
}
}
}

@ -1061,7 +1061,6 @@ int main(int argc, char *argv[])
# endif // HAVE_TAGLIB_H
else
Mpd->UpdateDirectory("/");
Mpd->UpdateStatus();
}
else if (Keypressed(input, Key.GoToNowPlaying))
{

Loading…
Cancel
Save