Skip to content

Commit

Permalink
Small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 11, 2025
1 parent 8fb389d commit c758b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Pd/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void Instance::initialisePd(String& pdlua_version)
break;
}
}
if (!activeEditor || !patchToOpen)
if (!activeEditor || !patchToOpen.isValid())
return;

for(auto& patch : pd->patches)
Expand Down
4 changes: 3 additions & 1 deletion Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,9 @@ bool PluginProcessor::isTextEditorDialogShown(uint64_t const ptr)

void PluginProcessor::hideTextEditorDialog(uint64_t ptr)
{
textEditorDialogs.erase(ptr);
MessageManager::callAsync([this, ptr]() {
textEditorDialogs.erase(ptr);
});
}

void PluginProcessor::showTextEditorDialog(uint64_t ptr, Rectangle<int> bounds, SmallString const& title)
Expand Down

0 comments on commit c758b6f

Please sign in to comment.