Commit c590fc4e authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure checkout option is available in CommandBar

parent bad9c052
......@@ -19,13 +19,11 @@
#include <QTreeView>
#include <QVBoxLayout>
#include <KTextEditor/MainWindow>
#include <KTextEditor/Message>
#include <KTextEditor/View>
#include <KLocalizedString>
#include <QDebug>
#include <KTextEditor/MainWindow>
#include <kfts_fuzzy_match.h>
......
......@@ -16,6 +16,7 @@
#include <KLineEdit>
#include <KLocalizedString>
#include <KActionCollection>
#include <QPushButton>
#include <QSortFilterProxyModel>
......@@ -46,6 +47,12 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
// let tree get focus for keyboard selection of file to open
setFocusProxy(m_treeView);
// add to actionCollection so that this is available in Kate Command bar
auto chckbr = pluginView->actionCollection()->addAction(QStringLiteral("checkout_branch"), this, [this]{
m_branchBtn->click();
});
chckbr->setText(QStringLiteral("Checkout Branch"));
m_branchesDialog = new BranchesDialog(this, mainWindow, m_project->baseDir());
/**
......
Markdown is supported
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