From 7b292c1c894bdb0cf017760c80d44e9b65b3e8bc Mon Sep 17 00:00:00 2001 From: James Ball Date: Fri, 1 Mar 2024 14:07:16 +0000 Subject: [PATCH] Correctly open every code document --- Source/MainComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MainComponent.cpp b/Source/MainComponent.cpp index 9493179..9d0305b 100644 --- a/Source/MainComponent.cpp +++ b/Source/MainComponent.cpp @@ -21,11 +21,11 @@ MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcess if (url.isLocalFile()) { auto file = url.getLocalFile(); audioProcessor.addFile(file); + pluginEditor.addCodeEditor(audioProcessor.getCurrentFileIndex()); fileAdded = true; } } if (fileAdded) { - pluginEditor.addCodeEditor(audioProcessor.getCurrentFileIndex()); pluginEditor.fileUpdated(audioProcessor.getCurrentFileName()); } });