Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Oct 20, 2024
1 parent eb4eda5 commit 6e043ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Bloxstrap/Resources/CustomBootstrapperSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"Attributes": {
"Stretch": "Stretch",
"StretchDirection": "StretchDirection",
"Source": "string",
"Source": "ImageSource",
"IsAnimated": "bool"
}
},
Expand Down Expand Up @@ -138,7 +138,7 @@
"ViewportUnits": "BrushMappingMode",
"Viewbox": "Rect",
"Viewport": "Rect",
"ImageSource": "Source"
"ImageSource": "ImageSource"
}
}
},
Expand All @@ -156,6 +156,7 @@
"Rect": {},
"Brush": {},
"Content": {},
"ImageSource": {},
"Visibility": {
"Values": [
"Visible",
Expand Down
3 changes: 3 additions & 0 deletions Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ private void OpenAttributeAutoComplete()

private void OpenTypeValueAutoComplete(string typeName)
{
if (CustomBootstrapperSchema.Types.ContainsKey(typeName))
throw new Exception($"Schema for type {typeName} is missing. Blame Matt!");

var typeValues = CustomBootstrapperSchema.Types[typeName].Values;
if (typeValues == null)
return;
Expand Down

0 comments on commit 6e043ed

Please sign in to comment.