From 0ca984663745af75376dd87d30684a92a2a08760 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 7 Sep 2014 18:46:33 +0200 Subject: [PATCH] settings: make possible values of visualizer_type reflect the ones in config file --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.cpp b/src/settings.cpp index 3b85c2b..0d03c3f 100644 --- a/src/settings.cpp +++ b/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); -- 2.11.4.GIT