Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Jul 27, 2024
1 parent 1e49bd0 commit 2d11297
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,12 @@ PluginAudioProcessorEditor::~PluginAudioProcessorEditor() {
// Open the last tab before deleting the tabbed component
tabbedComponent->setCurrentTabIndex(tabbedComponent->getNumTabs() - 1);

// Inform the Dexed instances that the editor is being deleted
for (int i = 0; i < audioProcessor.numberOfInstances; i++) {
audioProcessor.dexedPluginInstances[i]->editorBeingDeleted(dexedEditors[i]);
}

// Get our PluginAudioProcessor instance that is defined in PluginProcessor.h
auto pluginAudioProcessor = dynamic_cast<PluginAudioProcessor *>(getAudioProcessor());
if (!pluginAudioProcessor) {
return;
}

pluginAudioProcessor->dexedPluginInstances[i]->getActiveEditor()->setVisible(false);

// Clean up Dexed components and detach slider attachments
Expand Down

0 comments on commit 2d11297

Please sign in to comment.