From e0fe49e3e331536203b883844f8208da70800cbd Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 22 Dec 2020 23:49:52 +0100 Subject: [PATCH] Enable full sorting of items in the local browser if it's not --- CHANGELOG.md | 1 + src/screens/browser.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c385a5..6e0d5f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/screens/browser.cpp b/src/screens/browser.cpp index 8fce2d89..b67436bc 100644 --- a/src/screens/browser.cpp +++ b/src/screens/browser.cpp @@ -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;