Commit d660f70c authored by Jonathan L. Verner's avatar Jonathan L. Verner Committed by Milian Wolff
Browse files

Add refresh action to git more commit toolview ctx menus

Before, when an element in one of the categories (staged/unstaged/...)
was selected, its context menu didn't have the refresh repo action. This
was not very convenient, since one had to first unselect the element and
then trigger the context menu again, when the repo model was out of date.
This commit fixes this minor annoyance.
parent 32c8bbeb
Pipeline #96280 passed with stage
in 34 minutes and 1 second
......@@ -229,6 +229,8 @@ CommitToolView::CommitToolView ( QWidget* parent, RepoStatusModel* repostatusmod
m_revertFilesAct
= m_toolviewMenu->addAction(QIcon::fromTheme(QStringLiteral("edit-undo")), i18n("Revert unstaged edits"));
m_toolviewMenu->addAction(m_refreshModelAct);
// Refresh diffs when documents are saved
connect(ICore::self()->documentController(), &IDocumentController::documentSaved, this,
[=](KDevelop::IDocument* doc) {
......
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