browser: make sorting optional
This adds a new option, "noop", to browser_sort_mode. If this mode is selected, no sorting is done in the browser view, and the elements are shown in the same order as received from the MPD server.
This commit is contained in:
committed by
Andrzej Rybczak
parent
49f53c07bb
commit
9e8dc741e5
@@ -78,6 +78,8 @@ bool LocaleBasedItemSorting::operator()(const MPD::Item &a, const MPD::Item &b)
|
||||
result = m_cmp(a.song->toString(Config.browser_sort_format, Config.tags_separator),
|
||||
b.song->toString(Config.browser_sort_format, Config.tags_separator));
|
||||
break;
|
||||
case SortMode::NoOp:
|
||||
throw std::logic_error("can't sort with NoOp sorting mode");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user