UpdateManager should respect the default VelopackApp locator (if there is one) (#173)

This commit is contained in:
Caelan
2024-07-14 16:25:09 +01:00
committed by GitHub
parent ad16496b5a
commit 058ca0b57b

View File

@@ -92,7 +92,7 @@ namespace Velopack
}
Source = source;
Log = logger ?? VelopackApp.DefaultLogger ?? NullLogger.Instance;
Locator = locator ?? VelopackLocator.GetDefault(Log);
Locator = locator ?? VelopackApp.DefaultLocator ?? VelopackLocator.GetDefault(Log);
Channel = options?.ExplicitChannel ?? DefaultChannel;
ShouldAllowVersionDowngrade = options?.AllowVersionDowngrade ?? false;
}