From e2915c38e4340f6e6d565f81e34aafa8e20f54ee Mon Sep 17 00:00:00 2001 From: jp Date: Fri, 1 Apr 2016 09:40:35 +0200 Subject: [PATCH] allow loading custom widgets --- src/Interface.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Interface.cs b/src/Interface.cs index 05548587..97ab1c9d 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -153,6 +153,13 @@ namespace Crow } Type t = Type.GetType ("Crow." + root); + if (t == null) { + Assembly a = Assembly.GetEntryAssembly (); + foreach (Type expT in a.GetExportedTypes ()) { + if (expT.Name == root) + t = expT; + } + } stream.Seek (0, SeekOrigin.Begin); return t; -- 2.47.3