mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Moved extension association to App.xaml from AppState
This commit is contained in:
parent
a12faee21e
commit
8073d27b01
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using Wabbajack.Common;
|
||||
using Wabbajack.Lib.Updater;
|
||||
@ -29,6 +30,12 @@ namespace Wabbajack
|
||||
Environment.Exit(1);
|
||||
}*/
|
||||
|
||||
var appPath = Assembly.GetExecutingAssembly().Location;
|
||||
if (!(ExtensionManager.IsAssociated(appPath) || ExtensionManager.NeedsUpdating(appPath)))
|
||||
{
|
||||
ExtensionManager.Associate(appPath);
|
||||
}
|
||||
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
StartupUri = new Uri("UI/ModeSelectionWindow.xaml", UriKind.Relative);
|
||||
if (args.Length != 3) return;
|
||||
|
@ -85,12 +85,6 @@ namespace Wabbajack
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
var appPath = Assembly.GetExecutingAssembly().Location;
|
||||
if (!(ExtensionManager.IsAssociated(appPath) || ExtensionManager.NeedsUpdating(appPath)))
|
||||
{
|
||||
ExtensionManager.Associate(appPath);
|
||||
}
|
||||
|
||||
Mode = mode;
|
||||
|
||||
// Define commands
|
||||
|
Loading…
Reference in New Issue
Block a user