Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
e979cc2e
Commit
e979cc2e
authored
May 02, 2021
by
Waqar Ahmed
Browse files
Make sure git branch is always visible in a git repo
parent
2817a59b
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectview.cpp
View file @
e979cc2e
...
...
@@ -72,7 +72,7 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
/**
* Setup git checkout stuff
*/
m_branchBtn
->
setHidden
(
true
);
m_branchBtn
->
setHidden
(
!
GitUtils
::
isGitRepo
(
m_project
->
baseDir
())
);
connect
(
m_branchBtn
,
&
QPushButton
::
clicked
,
this
,
[
this
,
mainWindow
]
{
BranchCheckoutDialog
bd
(
mainWindow
->
window
(),
m_pluginView
,
m_project
->
baseDir
());
bd
.
openDialog
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment