mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 14:35:48 +00:00
Don't add extensions to output filters multiple times in python shell
This commit is contained in:
1 file changed
+5
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user