]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix Refresh tooltip text and add Refresh whatsThis text
authorTem PQD <variable_valuables761@simplelogin.com>
Sun, 25 Jun 2023 00:31:07 +0000 (00:31 +0000)
committerFelix Ernst <felixernst@kde.org>
Mon, 26 Jun 2023 19:32:00 +0000 (19:32 +0000)
BUG: 469263

src/dolphinmainwindow.cpp

index 00af38beb5607286f3a8ee4f5c181394b556ad2b..219c9eb56f16c398d46a3d7cc4cf3c61fe354456 100644 (file)
@@ -1766,7 +1766,14 @@ void DolphinMainWindow::setupActions()
     stashSplit->setVisible(sessionInterface && sessionInterface->isServiceRegistered(QStringLiteral("org.kde.kio.StashNotifier")));
     connect(stashSplit, &QAction::triggered, this, &DolphinMainWindow::toggleSplitStash);
 
-    KStandardAction::redisplay(this, &DolphinMainWindow::reloadView, actionCollection());
+    QAction *redisplay = KStandardAction::redisplay(this, &DolphinMainWindow::reloadView, actionCollection());
+    redisplay->setToolTip(i18nc("@info:tooltip", "Refresh view"));
+    redisplay->setWhatsThis(xi18nc("@info:whatsthis refresh",
+                                   "<para>This refreshes "
+                                   "the folder view.</para>"
+                                   "<para>If the contents of this folder have changed, refreshing will re-scan this folder "
+                                   "and show you a newly-updated view of the files and folders contained here.</para>"
+                                   "<para>If the view is split, this refreshes the one that is currently in focus.</para>"));
 
     QAction *stop = actionCollection()->addAction(QStringLiteral("stop"));
     stop->setText(i18nc("@action:inmenu View", "Stop"));