Skip to content

Commit

Permalink
Fixed possible crash on TSX refresh on secondary thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 1, 2024
1 parent e739a07 commit a9e66b2
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,17 @@ private void HandleFileChange(string fileName)
shouldRefreshErrors = true;
if(allReferencedFileSaves.Length > 0)
{
var nos = GlueState.Self.CurrentNamedObjectSave;
var element = GlueState.Self.CurrentElement;
if (collisionTab?.IsShown == true && nos != null)

GlueCommands.Self.DoOnUiThread(() =>
{
TileShapeCollectionsPropertiesController.Self.RefreshViewModelTo(nos, element);
}
var nos = GlueState.Self.CurrentNamedObjectSave;
var element = GlueState.Self.CurrentElement;
if (collisionTab?.IsShown == true && nos != null)
{
TileShapeCollectionsPropertiesController.Self.RefreshViewModelTo(nos, element);
}
});

}

}
Expand Down

0 comments on commit a9e66b2

Please sign in to comment.