diff options
author | David Schulz <david.schulz@qt.io> | 2023-01-20 12:27:03 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2023-01-20 12:51:07 +0000 |
commit | e592e0e83f95d63be79dac4e4503976a7444274d (patch) | |
tree | 08b741c93f970ceb38306b1c107a4c8c4c4a4aa7 /src/plugins/python/pythonlanguageclient.cpp | |
parent | 642c593481a3abbd8f3965d9e9aa8cbb7e519af7 (diff) | |
download | qt-creator-e592e0e83f95d63be79dac4e4503976a7444274d.tar.gz |
Python: remove outdated pyls install toolbar earlier
Change-Id: I9ba67bffcff159523eb44b4f486c11fc37085fa8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 3e36c27e78..dde324dbd9 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -312,6 +312,7 @@ void PyLSConfigureAssistant::installPythonLanguageServer(const FilePath &python, void PyLSConfigureAssistant::openDocumentWithPython(const FilePath &python, TextEditor::TextDocument *document) { + instance()->resetEditorInfoBar(document); if (!PythonSettings::pylsEnabled()) return; @@ -350,7 +351,6 @@ void PyLSConfigureAssistant::handlePyLSState(const FilePath &python, if (state.state == PythonLanguageServerState::CanNotBeInstalled) return; - resetEditorInfoBar(document); Utils::InfoBar *infoBar = document->infoBar(); if (state.state == PythonLanguageServerState::CanBeInstalled && infoBar->canInfoBeAdded(installPylsInfoBarId)) { |