mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Removed Mo2folder from ModlistSettingsEditorVM ctor
This commit is contained in:
parent
30437ba9c3
commit
4ff0d8e683
@ -158,7 +158,10 @@ namespace Wabbajack
|
||||
{
|
||||
if (u.State.Failed) return null;
|
||||
var modlistSettings = settings.ModlistSettings.TryCreate(u.Path);
|
||||
return new ModlistSettingsEditorVM(modlistSettings, this.MOProfile);
|
||||
return new ModlistSettingsEditorVM(modlistSettings)
|
||||
{
|
||||
ModListName = this.MOProfile
|
||||
};
|
||||
})
|
||||
// Interject and save old while loading new
|
||||
.Pairwise()
|
||||
|
@ -14,7 +14,6 @@ namespace Wabbajack
|
||||
public class ModlistSettingsEditorVM : ViewModel
|
||||
{
|
||||
private CompilationModlistSettings settings;
|
||||
private string mo2Profile;
|
||||
|
||||
[Reactive]
|
||||
public string ModListName { get; set; }
|
||||
@ -32,10 +31,9 @@ namespace Wabbajack
|
||||
[Reactive]
|
||||
public string Website { get; set; }
|
||||
|
||||
public ModlistSettingsEditorVM(CompilationModlistSettings settings, string mo2Profile)
|
||||
public ModlistSettingsEditorVM(CompilationModlistSettings settings)
|
||||
{
|
||||
this.settings = settings;
|
||||
this.mo2Profile = mo2Profile;
|
||||
this.ImagePath = new FilePickerVM()
|
||||
{
|
||||
DoExistsCheck = false,
|
||||
@ -55,12 +53,7 @@ namespace Wabbajack
|
||||
public void Init()
|
||||
{
|
||||
this.AuthorText = settings.Author;
|
||||
if (string.IsNullOrWhiteSpace(settings.ModListName))
|
||||
{
|
||||
// Set ModlistName initially off just the MO2Profile
|
||||
this.ModListName = mo2Profile;
|
||||
}
|
||||
else
|
||||
if (!string.IsNullOrWhiteSpace(settings.ModListName))
|
||||
{
|
||||
this.ModListName = settings.ModListName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user