Skip to content
GitLab
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
94c28171
Commit
94c28171
authored
Aug 15, 2022
by
Christoph Cullmann
🍨
Browse files
show project tool view only on manual project open
otherwise we screw up the tool view display on application startup
parent
c61b38da
Pipeline
#218361
passed with stage
in 5 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectpluginview.cpp
View file @
94c28171
...
...
@@ -806,7 +806,11 @@ void KateProjectPluginView::openDirectoryOrProject()
// switch to this project if there
if
(
auto
project
=
m_plugin
->
projectForDir
(
dir
,
true
))
{
// just activate the right plugin in the toolview
slotActivateProject
(
project
);
// this is a user action, ensure the toolview is visible
mainWindow
()
->
showToolView
(
m_toolView
);
}
}
...
...
@@ -886,7 +890,6 @@ void KateProjectPluginView::slotActivateProject(KateProject *project)
const
int
index
=
m_projectsCombo
->
findData
(
project
->
fileName
());
if
(
index
>=
0
)
{
m_projectsCombo
->
setCurrentIndex
(
index
);
mainWindow
()
->
showToolView
(
m_toolView
);
}
}
...
...
addons/project/kateprojectpluginview.h
View file @
94c28171
...
...
@@ -223,7 +223,9 @@ private Q_SLOTS:
void
slotGotoSymbol
();
/**
* activate the given project
* activate the given project inside the project tool view
* will NOT show the project toolview
* @param project project to activate
*/
void
slotActivateProject
(
KateProject
*
project
);
...
...
Christoph Cullmann
🍨
@cullmann
mentioned in commit
c6b57c14
·
Aug 22, 2022
mentioned in commit
c6b57c14
mentioned in commit c6b57c141af5661e14bd101cc523956055862103
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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