Don't add extensions to output filters multiple times in python shell

This commit is contained in:
baldurk committed 2026-08-31 10:30:37 +01:00
1 parent cbeb5804cf
commit 1d4cde2d6e
1 file changed
+5 -2
+5 -2
View File
@@ -1805,8 +1805,11 @@ void PythonShell::removeEditor(EditorWrapper *editor)
void PythonShell::extensionLoaded(const QString &extension)
{
ui->outputContext->addItem(tr("Extension %1").arg(extension));
loadedExtensions.push_back(extension);
if(!loadedExtensions.contains(extension))
{
ui->outputContext->addItem(tr("Extension %1").arg(extension));
loadedExtensions.push_back(extension);
}
}
void PythonShell::editor_contextMenu(const QPoint &pos)