Browse Source

Resolve full path before setting library dir override

pull/324/head
Ionite 12 months ago
parent
commit
f021721c86
No known key found for this signature in database
  1. 5
      StabilityMatrix.Core/Services/SettingsManager.cs

5
StabilityMatrix.Core/Services/SettingsManager.cs

@ -276,8 +276,9 @@ public class SettingsManager : ISettingsManager
// 0. Check Override // 0. Check Override
if (!string.IsNullOrEmpty(LibraryDirOverride)) if (!string.IsNullOrEmpty(LibraryDirOverride))
{ {
Logger.Info("Using library override path: {Path}", LibraryDirOverride); var fullOverridePath = Path.GetFullPath(LibraryDirOverride);
LibraryDir = LibraryDirOverride; Logger.Info("Using library override path: {Path}", fullOverridePath);
LibraryDir = fullOverridePath;
SetStaticLibraryPaths(); SetStaticLibraryPaths();
LoadSettings(); LoadSettings();
return true; return true;

Loading…
Cancel
Save