|
|
@ -425,6 +425,12 @@ public class SettingsManager : ISettingsManager |
|
|
|
foreach (var jsonFile in connectedModelJsons) |
|
|
|
foreach (var jsonFile in connectedModelJsons) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var json = File.ReadAllText(jsonFile); |
|
|
|
var json = File.ReadAllText(jsonFile); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(json)) |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
|
|
|
{ |
|
|
|
var connectedModel = JsonSerializer.Deserialize<ConnectedModelInfo>(json); |
|
|
|
var connectedModel = JsonSerializer.Deserialize<ConnectedModelInfo>(json); |
|
|
|
|
|
|
|
|
|
|
|
if (connectedModel?.Hashes.BLAKE3 != null) |
|
|
|
if (connectedModel?.Hashes.BLAKE3 != null) |
|
|
@ -432,6 +438,11 @@ public class SettingsManager : ISettingsManager |
|
|
|
modelHashes.Add(connectedModel.Hashes.BLAKE3); |
|
|
|
modelHashes.Add(connectedModel.Hashes.BLAKE3); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Logger.Warn(e, "Failed to parse connected model info from {JsonFile}", jsonFile); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Transaction(s => s.InstalledModelHashes = modelHashes); |
|
|
|
Transaction(s => s.InstalledModelHashes = modelHashes); |
|
|
|
|
|
|
|
|
|
|
|