Add "Sort By" to the hamburger menu

People seem to use the "Sort By" menu often enough that it should
be available through the hamburger menu.

Before this change one could only sort the view through the right-
click context menu, using the details view mode or by using the
actions from the menu bar.
This commit is contained in:
Felix Ernst 2021-06-08 13:48:41 +02:00
parent c6262c97af
commit 5271943a25

View file

@ -1222,6 +1222,7 @@ void DolphinMainWindow::updateHamburgerMenu()
menu->addAction(ac->action(QStringLiteral("view_mode")));
}
menu->addAction(ac->action(QStringLiteral("show_hidden_files")));
menu->addAction(ac->action(QStringLiteral("sort")));
menu->addAction(ac->action(QStringLiteral("additional_info")));
if (!GeneralSettings::showStatusBar() || !GeneralSettings::showZoomSlider()) {
menu->addAction(ac->action(QStringLiteral("zoom")));