From ae8569bb38226ebf300f909f9735296dc40e27d0 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Thu, 13 Feb 2020 08:36:03 -0700 Subject: [PATCH] Fix checking the file association for needed updates Previously, this would fail to notice that the file association needed to be updated. This would lead to Windows trying to open non-existent copies of Wabbajack or to Wabbajack selecting "-i" as the chosen mod list instead of the file selected. --- Wabbajack.Common/ModListAssociationManager1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Common/ModListAssociationManager1.cs b/Wabbajack.Common/ModListAssociationManager1.cs index 69ddb6a8..361ae05e 100644 --- a/Wabbajack.Common/ModListAssociationManager1.cs +++ b/Wabbajack.Common/ModListAssociationManager1.cs @@ -32,7 +32,7 @@ namespace Wabbajack.Common var tempKey = progIDKey?.OpenSubKey("shell\\open\\command"); if (progIDKey == null || tempKey == null) return true; var value = tempKey.GetValue(""); - return value == null || value.ToString().Equals($"\"{appPath}\" -i=\"%1\""); + return value == null || !value.ToString().Equals($"\"{appPath}\" -i=\"%1\""); } public static bool IsAssociated()