|
|
@ -429,6 +429,9 @@ public class SettingsManager : ISettingsManager |
|
|
|
|
|
|
|
|
|
|
|
var modelHashes = new HashSet<string>(); |
|
|
|
var modelHashes = new HashSet<string>(); |
|
|
|
var sharedModelDirectory = Path.Combine(LibraryDir, "Models"); |
|
|
|
var sharedModelDirectory = Path.Combine(LibraryDir, "Models"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!Directory.Exists(sharedModelDirectory)) return; |
|
|
|
|
|
|
|
|
|
|
|
var connectedModelJsons = Directory.GetFiles(sharedModelDirectory, "*.cm-info.json", |
|
|
|
var connectedModelJsons = Directory.GetFiles(sharedModelDirectory, "*.cm-info.json", |
|
|
|
SearchOption.AllDirectories); |
|
|
|
SearchOption.AllDirectories); |
|
|
|
foreach (var jsonFile in connectedModelJsons) |
|
|
|
foreach (var jsonFile in connectedModelJsons) |
|
|
|