Commit 2ef84f78 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

project: read plugin configuration a bit sooner

parent 1584e21b
......@@ -76,6 +76,9 @@ KateProjectPlugin::KateProjectPlugin(QObject *parent, const QList<QVariant> &)
connect(KTextEditor::Editor::instance()->application(), &KTextEditor::Application::documentCreated, this, &KateProjectPlugin::slotDocumentCreated);
connect(&m_fileWatcher, &QFileSystemWatcher::directoryChanged, this, &KateProjectPlugin::slotDirectoryChanged);
// read configuration prior to cwd project setup below
readConfig();
#ifdef HAVE_CTERMID
/**
* open project for our current working directory, if this kate has a terminal
......@@ -91,8 +94,6 @@ KateProjectPlugin::KateProjectPlugin(QObject *parent, const QList<QVariant> &)
}
#endif
readConfig();
for (auto document : KTextEditor::Editor::instance()->application()->documents()) {
slotDocumentCreated(document);
}
......
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