mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Reformatted window creation
This commit is contained in:
parent
c980de3dd1
commit
901de1ee8a
@ -57,9 +57,11 @@ namespace Wabbajack
|
||||
Dirty = false;
|
||||
dispatcher = d;
|
||||
|
||||
var th = new Thread(() => UpdateLoop());
|
||||
th.Priority = ThreadPriority.BelowNormal;
|
||||
th.IsBackground = true;
|
||||
var th = new Thread(() => UpdateLoop())
|
||||
{
|
||||
Priority = ThreadPriority.BelowNormal,
|
||||
IsBackground = true
|
||||
};
|
||||
th.Start();
|
||||
}
|
||||
|
||||
@ -405,9 +407,10 @@ namespace Wabbajack
|
||||
UIReady = false;
|
||||
if (Mode == "Installing")
|
||||
{
|
||||
var installer = new Installer(_modListPath, _modList, Location);
|
||||
|
||||
installer.DownloadFolder = DownloadLocation;
|
||||
var installer = new Installer(_modListPath, _modList, Location)
|
||||
{
|
||||
DownloadFolder = DownloadLocation
|
||||
};
|
||||
var th = new Thread(() =>
|
||||
{
|
||||
UIReady = false;
|
||||
@ -426,14 +429,18 @@ namespace Wabbajack
|
||||
{
|
||||
UIReady = true;
|
||||
}
|
||||
});
|
||||
th.Priority = ThreadPriority.BelowNormal;
|
||||
})
|
||||
{
|
||||
Priority = ThreadPriority.BelowNormal
|
||||
};
|
||||
th.Start();
|
||||
}
|
||||
else if (_mo2Folder != null)
|
||||
{
|
||||
var compiler = new Compiler(_mo2Folder);
|
||||
compiler.MO2Profile = ModListName;
|
||||
var compiler = new Compiler(_mo2Folder)
|
||||
{
|
||||
MO2Profile = ModListName
|
||||
};
|
||||
var th = new Thread(() =>
|
||||
{
|
||||
UIReady = false;
|
||||
@ -454,8 +461,10 @@ namespace Wabbajack
|
||||
{
|
||||
UIReady = true;
|
||||
}
|
||||
});
|
||||
th.Priority = ThreadPriority.BelowNormal;
|
||||
})
|
||||
{
|
||||
Priority = ThreadPriority.BelowNormal
|
||||
};
|
||||
th.Start();
|
||||
}
|
||||
else
|
||||
|
@ -65,8 +65,10 @@ namespace Wabbajack
|
||||
{
|
||||
context.Running = false;
|
||||
ExitWhenClosing = false;
|
||||
var window = new ModeSelectionWindow();
|
||||
window.ShowActivated = true;
|
||||
var window = new ModeSelectionWindow
|
||||
{
|
||||
ShowActivated = true
|
||||
};
|
||||
window.Show();
|
||||
Close();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user