From e592e0e83f95d63be79dac4e4503976a7444274d Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 20 Jan 2023 12:27:03 +0100 Subject: [PATCH] Python: remove outdated pyls install toolbar earlier Change-Id: I9ba67bffcff159523eb44b4f486c11fc37085fa8 Reviewed-by: Christian Stenger --- src/plugins/python/pythonlanguageclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 3e36c27e78b..dde324dbd95 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)) {