mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
fix crash
This commit is contained in:
parent
eb4eda5029
commit
6e043ed12b
@ -89,7 +89,7 @@
|
|||||||
"Attributes": {
|
"Attributes": {
|
||||||
"Stretch": "Stretch",
|
"Stretch": "Stretch",
|
||||||
"StretchDirection": "StretchDirection",
|
"StretchDirection": "StretchDirection",
|
||||||
"Source": "string",
|
"Source": "ImageSource",
|
||||||
"IsAnimated": "bool"
|
"IsAnimated": "bool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -138,7 +138,7 @@
|
|||||||
"ViewportUnits": "BrushMappingMode",
|
"ViewportUnits": "BrushMappingMode",
|
||||||
"Viewbox": "Rect",
|
"Viewbox": "Rect",
|
||||||
"Viewport": "Rect",
|
"Viewport": "Rect",
|
||||||
"ImageSource": "Source"
|
"ImageSource": "ImageSource"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -156,6 +156,7 @@
|
|||||||
"Rect": {},
|
"Rect": {},
|
||||||
"Brush": {},
|
"Brush": {},
|
||||||
"Content": {},
|
"Content": {},
|
||||||
|
"ImageSource": {},
|
||||||
"Visibility": {
|
"Visibility": {
|
||||||
"Values": [
|
"Values": [
|
||||||
"Visible",
|
"Visible",
|
||||||
|
@ -328,6 +328,9 @@ namespace Bloxstrap.UI.Elements.Editor
|
|||||||
|
|
||||||
private void OpenTypeValueAutoComplete(string typeName)
|
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;
|
var typeValues = CustomBootstrapperSchema.Types[typeName].Values;
|
||||||
if (typeValues == null)
|
if (typeValues == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user