Enable full sorting of items in the local browser if it's not

This commit is contained in:
Andrzej Rybczak
2020-12-22 23:49:52 +01:00
parent 03f046802a
commit e0fe49e3e3
2 changed files with 9 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
* Consider mouse support when pausing and unpausing curses interface.
* Reduce CPU usage of the frequency spectrum visualizer.
* Enable Link Time Optimization by default.
* Enable full sorting of items in the local browser if it's not.
# ncmpcpp-0.9 (2020-12-20)
* Fix various Mopidy specific bugs.

View File

@@ -498,7 +498,15 @@ void Browser::getDirectory(std::string directory)
}
if (m_local_browser)
{
getLocalDirectory(w, directory);
if (Config.browser_sort_mode == SortMode::None
|| Config.browser_sort_mode == SortMode::Type)
{
Statusbar::print("Switching to sorting songs by name for the local browser");
Config.browser_sort_mode = SortMode::Name;
}
}
else
{
MPD::ItemIterator end;