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

This commit is contained in:
Andrzej Rybczak
2014-09-07 18:46:33 +02:00
parent bf03b6d30b
commit 0ca9846637

View File

@@ -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);