settings: fix copypaste error that was overwriting regex_type
This commit is contained in:
@@ -418,8 +418,7 @@ bool Configuration::read(const std::string &config_path)
|
|||||||
media_lib_primary_tag = MPD_TAG_PERFORMER;
|
media_lib_primary_tag = MPD_TAG_PERFORMER;
|
||||||
else
|
else
|
||||||
throw std::runtime_error("invalid argument: " + v);
|
throw std::runtime_error("invalid argument: " + v);
|
||||||
regex_type |= boost::regex::icase;
|
}, defaults_to(media_lib_primary_tag, MPD_TAG_ARTIST)
|
||||||
}, defaults_to(regex_type, boost::regex::literal | boost::regex::icase)
|
|
||||||
));
|
));
|
||||||
p.add("default_find_mode", option_parser::worker([this](std::string &&v) {
|
p.add("default_find_mode", option_parser::worker([this](std::string &&v) {
|
||||||
if (v == "wrapped")
|
if (v == "wrapped")
|
||||||
|
|||||||
Reference in New Issue
Block a user