File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ public partial class AutoUpdater
3939 "50f753333811ff11f1920274afde3ffd4468b210" ,
4040 ] ;
4141
42+ private static readonly AutoUpdaterJsonContext ProductInfoJsonContext = new ( SerializationHelpers . DefaultOptions ) ;
43+
4244 public static Window Window = null ! ;
4345 public static InfoBar Banner = null ! ;
4446 //------------------------------------------------------------------------------------------------------------------
@@ -208,7 +210,7 @@ private static async Task<UpdateCandidate> CheckForUpdatesFromProductInfo(Update
208210 Dictionary < string , ProductInfoProduct > ? productInfoRoot = JsonSerializer . Deserialize (
209211 productInfo ,
210212 typeof ( Dictionary < string , ProductInfoProduct > ) ,
211- AutoUpdaterJsonContext . Default ) as Dictionary < string , ProductInfoProduct > ;
213+ ProductInfoJsonContext ) as Dictionary < string , ProductInfoProduct > ;
212214 if ( productInfoRoot is null || productInfoRoot . Count == 0 )
213215 {
214216 throw new FormatException ( "productinfo.json content is empty or invalid" ) ;
You can’t perform that action at this time.
0 commit comments