settings: add startup_slave_screen option

This commit is contained in:
brezerk
2014-11-06 20:13:46 +01:00
committed by Andrzej Rybczak
parent a4e9523f63
commit cc747c0f99
10 changed files with 49 additions and 12 deletions

View File

@@ -121,7 +121,11 @@ void initialize_status()
{
int curr_pos = Status::State::currentSongPosition();
if (curr_pos >= 0)
{
myPlaylist->main().highlight(curr_pos);
if (isVisible(myPlaylist))
myPlaylist->refresh();
}
}
// Set TCP_NODELAY on the tcp socket as we are using write-write-read pattern
@@ -130,11 +134,6 @@ void initialize_status()
int flag = 1;
setsockopt(Mpd.GetFD(), IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag));
// go to startup screen
if (Config.startup_screen_type != myScreen->type())
toScreen(Config.startup_screen_type)->switchTo();
myScreen->refresh();
myBrowser->fetchSupportedExtensions();
# ifdef ENABLE_OUTPUTS
myOutputs->FetchList();