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.
This commit is contained in:
LostDragonist 2020-02-13 08:36:03 -07:00
parent 8d7c4c823a
commit ae8569bb38

View File

@ -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()