Commit de793d52 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/taskmanager] Add a separator before "Forget Recent Files"

This visually separates that semi-destructive action from the items
which will be cleared, helping to indicate its purpose and making it
harder to accidentally clear the history when you're trying to activate
the last item in the recently used list.
parent 23edcdb3
......@@ -390,12 +390,15 @@ QVariantList Backend::recentDocumentActions(const QUrl &launcherUrl, QObject *pa
if (actionCount > 0) {
QAction *separatorAction = new QAction(parent);
actions << QVariant::fromValue<QAction *>(separatorAction);
QAction *action = new QAction(parent);
action->setText(i18n("Forget Recent Files"));
action->setProperty("agent", storageId);
connect(action, &QAction::triggered, this, &Backend::handleRecentDocumentAction);
actions << QVariant::fromValue<QAction *>(action);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment