fix for new minigui things

This commit is contained in:
Adam D. Ruppe 2023-04-17 13:03:41 -04:00
parent 97eb7e43f9
commit f14befa028
1 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,8 @@ module arsd.minigui_xml;
public import arsd.minigui;
public import arsd.minigui : Event;
import arsd.textlayouter;
import arsd.dom;
import std.conv;
@ -255,6 +257,8 @@ void appendMiniguiModule(alias Module, string prefix = null)()
{
params[idx] = Color.fromString(*arg);
}
else static if(is(typeof(param) == TextLayouter))
params[idx] = null;
else
params[idx] = to!(typeof(param))(*arg);
}
@ -265,7 +269,7 @@ void appendMiniguiModule(alias Module, string prefix = null)()
}
}}
params[$-1] = parent;
params[$-1] = cast(typeof(params[$-1])) parent;
auto member = new Member(params);
widget = member;