From 5082ef460a413cc69bf464f7cae4bba052bb40b9 Mon Sep 17 00:00:00 2001 From: dicky Date: Sun, 24 Nov 2019 21:02:20 -0800 Subject: [PATCH] Fix the logic that check registered VMs. --- DotNetifyLib.Core/VMController/VMController.Registration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DotNetifyLib.Core/VMController/VMController.Registration.cs b/DotNetifyLib.Core/VMController/VMController.Registration.cs index 25359bd7..cd6dea7e 100644 --- a/DotNetifyLib.Core/VMController/VMController.Registration.cs +++ b/DotNetifyLib.Core/VMController/VMController.Registration.cs @@ -51,8 +51,8 @@ internal static List VMTypes { get { - // If no view model assembly has been registered, default to the entry assembly. - if (_registeredAssemblies.Count == 0) + // If no view model has been registered, default to the entry assembly. + if (_vmTypes.Count == 0) RegisterAssembly(Assembly.GetEntryAssembly()); // If there's deferred exception on registering assemblies, throw it now.