Deprecate 'noop' value of browser_sort_mode in favor of 'none'.

This commit is contained in:
Andrzej Rybczak
2020-12-19 16:17:45 +01:00
parent 17c950cc57
commit 3c7ce95aaa
9 changed files with 25 additions and 15 deletions

View File

@@ -387,7 +387,16 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
"{%a - }{%t}|{%f}", [](std::string v) {
return Format::parse(v, Format::Flags::Tag);
});
p.add("browser_sort_mode", &browser_sort_mode, "name");
p.add("browser_sort_mode", &browser_sort_mode, "name", [](std::string v) {
if (v == "noop")
{
deprecated("browser_sort_mode = 'noop'",
"0.10",
"use 'none' instead");
v = "none";
}
return verbose_lexical_cast<SortMode>(v);
});
p.add("browser_sort_format", &browser_sort_format,
"{%a - }{%t}|{%f} {(%l)}", [](std::string v) {
return Format::parse(v, Format::Flags::Tag);