Commit 94c28171 authored by Christoph Cullmann's avatar 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
......@@ -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);
}
}
......
......@@ -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);
......
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