Merge pull request #132 from erri120/extension-cleanup

ExtensionManager: Removed unused argument
This commit is contained in:
erri120 2019-10-31 12:15:19 +01:00 committed by GitHub
commit 10e65a7100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace Wabbajack.Common
return tempKey.GetValue("").ToString().Equals($"\"{appPath}\" -i \"%1\"");
}
public static bool IsAssociated(string appPath)
public static bool IsAssociated()
{
var progIDKey = Registry.CurrentUser.OpenSubKey(ProgIDPath);
var extKey = Registry.CurrentUser.OpenSubKey(ExtPath);

View File

@ -31,7 +31,7 @@ namespace Wabbajack
}*/
var appPath = Assembly.GetExecutingAssembly().Location;
if (!ExtensionManager.IsAssociated(appPath) || ExtensionManager.NeedsUpdating(appPath))
if (!ExtensionManager.IsAssociated() || ExtensionManager.NeedsUpdating(appPath))
{
ExtensionManager.Associate(appPath);
}