From 5212cd251f845987c35d331a49e0febe936a2bb5 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Sun, 4 Jun 2023 10:20:23 -0400 Subject: [PATCH] Fix JSONConfiguration not checking path properly Closes #460 --- src/NetSparkle/Configurations/JSONConfiguration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetSparkle/Configurations/JSONConfiguration.cs b/src/NetSparkle/Configurations/JSONConfiguration.cs index 289fee33..9406fae0 100644 --- a/src/NetSparkle/Configurations/JSONConfiguration.cs +++ b/src/NetSparkle/Configurations/JSONConfiguration.cs @@ -48,7 +48,7 @@ public JSONConfiguration(IAssemblyAccessor assemblyAccessor) public JSONConfiguration(IAssemblyAccessor assemblyAccessor, string savePath) : base(assemblyAccessor) { - _savePath = savePath != null && string.IsNullOrWhiteSpace(savePath) ? savePath : GetSavePath(); + _savePath = savePath != null && !string.IsNullOrWhiteSpace(savePath) ? savePath : GetSavePath(); try { // get the save path