]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add "Sort By" to the hamburger menu
authorFelix Ernst <fe.a.ernst@gmail.com>
Tue, 8 Jun 2021 11:48:41 +0000 (13:48 +0200)
committerFelix Ernst <fe.a.ernst@gmail.com>
Tue, 8 Jun 2021 11:48:41 +0000 (13:48 +0200)
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.

src/dolphinmainwindow.cpp

index 428e16547fa65714e3ea08cab7d3a08a6ca67609..5595d0f5ba2e74c6c4e4e9ce2b12c8dfaeff953f 100644 (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")));