actions: toggle browser sort mode: sorty with disabled filtering
This commit is contained in:
@@ -2090,10 +2090,12 @@ void ToggleBrowserSortMode::run()
|
|||||||
Config.browser_sort_mode = SortMode::Name;
|
Config.browser_sort_mode = SortMode::Name;
|
||||||
Statusbar::print("Sort songs by: name");
|
Statusbar::print("Sort songs by: name");
|
||||||
}
|
}
|
||||||
if (Config.browser_sort_mode != SortMode::NoOp)
|
withUnfilteredMenuReapplyFilter(myBrowser->main(), [] {
|
||||||
std::sort(myBrowser->main().begin()+(myBrowser->CurrentDir() != "/"), myBrowser->main().end(),
|
if (Config.browser_sort_mode != SortMode::NoOp)
|
||||||
LocaleBasedItemSorting(std::locale(), Config.ignore_leading_the, Config.browser_sort_mode)
|
std::sort(myBrowser->main().begin()+(myBrowser->CurrentDir() != "/"), myBrowser->main().end(),
|
||||||
);
|
LocaleBasedItemSorting(std::locale(), Config.ignore_leading_the, Config.browser_sort_mode)
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToggleLibraryTagType::canBeRun() const
|
bool ToggleLibraryTagType::canBeRun() const
|
||||||
|
|||||||
Reference in New Issue
Block a user