summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-08-24 21:16:53 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-08-24 21:16:53 +0200
commit2d9d22281a6c4d65a65740eb1c3cbfa090324d58 (patch)
treea9ae706ecb3f4092727605581c40d50d5ec45acf /src/settings.cpp
parent3998cb80f241a9b6f395678708859a147ee3305a (diff)
new config option: jump_to_now_playing_song_at_start (enabled by default)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index eef6ff76..e34916d8 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -289,6 +289,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.local_browser_show_hidden_files = false;
conf.search_in_db = true;
conf.display_screens_numbers_on_start = true;
+ conf.jump_to_now_playing_song_at_start = true;
conf.clock_display_seconds = false;
conf.display_bitrate = false;
conf.ignore_leading_the = false;
@@ -730,6 +731,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.display_screens_numbers_on_start = v == "yes";
}
+ else if (cl.find("jump_to_now_playing_song_at_start") != std::string::npos)
+ {
+ conf.jump_to_now_playing_song_at_start = v == "yes";
+ }
else if (cl.find("clock_display_seconds") != std::string::npos)
{
conf.clock_display_seconds = v == "yes";