Skip to content

Commit

Permalink
Merge pull request #122 from bwiesmayr/invalid_thread_access
Browse files Browse the repository at this point in the history
Invalid thread access
  • Loading branch information
azoitl committed May 8, 2024
2 parents a90ee0c + 791bc3b commit 0d857b2
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ private int openFileChangedDialog() {
private void handleDependencyUpdate(final TypeEntry typeEntry) {
final LibraryElement editedElement = editor.getEditedElement();
if (editedElement != null) {

if ((typeEntry instanceof FBTypeEntry || typeEntry instanceof SubAppTypeEntry)) {
handleBlockTypeDependencyUpdate(editedElement, typeEntry);
}
if (typeEntry instanceof final DataTypeEntry dtEntry) {
handleDataTypeEntryUpdate(editedElement, dtEntry);
}
Display.getDefault().syncExec(() -> {
if ((typeEntry instanceof FBTypeEntry || typeEntry instanceof SubAppTypeEntry)) {
handleBlockTypeDependencyUpdate(editedElement, typeEntry);
}
if (typeEntry instanceof final DataTypeEntry dtEntry) {
handleDataTypeEntryUpdate(editedElement, dtEntry);
}
});
}
}

Expand Down

0 comments on commit 0d857b2

Please sign in to comment.