settings: remove mpd_communication_mode as poling is no longer supported

master
Andrzej Rybczak 13 years ago
parent 6a3eb73a49
commit 5c610b9a41
  1. 2
      doc/config
  2. 3
      doc/ncmpcpp.1
  3. 5
      src/settings.cpp
  4. 1
      src/settings.h

@ -36,8 +36,6 @@
#
#mpd_crossfade_time = "5"
#
#mpd_communication_mode = "notifications" (polling/notifications)
#
##### music visualizer #####
##
## Note: In order to make music visualizer work you'll

@ -81,9 +81,6 @@ Set connection timeout to MPD to given value.
.B mpd_crossfade_time = SECONDS
Default number of seconds to crossfade, if enabled by ncmpcpp.
.TP
.B mpd_communication_mode = MODE
If set to 'polling', ncmpcpp will constantly poll mpd for its status. If set to 'notifications', ncmppcp will make use of 'idle' command and wait for events. This is more efficient and responsive, but may cause some trouble with <mpd-0.15, so if you run such version and encounter strange bugs (e.g. current track time not being updated), you will either have to use 'polling' or upgrade your mpd.
.TP
.B visualizer_in_stereo = yes/no
Should be set to 'yes', if fifo output's format was set to 44100:16:2.
.TP

@ -173,7 +173,6 @@ void Configuration::SetDefaults()
active_window_border = NC::Border::Red;
visualizer_color = NC::Color::Yellow;
media_lib_primary_tag = MPD_TAG_ARTIST;
enable_idle_notifications = true;
colors_enabled = true;
playlist_show_remaining_time = false;
playlist_shorten_total_times = false;
@ -571,10 +570,6 @@ void Configuration::Read()
if (!v.empty())
color2 = stringToColor(v);
}
else if (name == "mpd_communication_mode")
{
enable_idle_notifications = v == "notifications";
}
else if (name == "colors_enabled")
{
colors_enabled = v == "yes";

@ -138,7 +138,6 @@ struct Configuration
mpd_tag_type media_lib_primary_tag;
bool enable_idle_notifications;
bool colors_enabled;
bool playlist_show_remaining_time;
bool playlist_shorten_total_times;

Loading…
Cancel
Save