settings: make possible values of visualizer_type reflect the ones in config file

master
Andrzej Rybczak 12 years ago
parent bf03b6d30b
commit 0ca9846637
  1. 2
      src/settings.cpp

@ -233,7 +233,7 @@ bool Configuration::read(const std::string &config_path)
p.add("visualizer_type", option_parser::worker([this](std::string &&v) {
if (v == "wave")
visualizer_use_wave = true;
else if (v == "frequency")
else if (v == "spectrum")
visualizer_use_wave = false;
else
throw std::runtime_error("invalid argument: " + v);

Loading…
Cancel
Save