Fixed properties window not showing when closed

This commit is contained in:
erri120 2019-10-09 11:45:23 +02:00
parent 3a4131a8f9
commit b6ec1acc18
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 14 additions and 1 deletions

View File

@ -249,7 +249,13 @@ namespace Wabbajack
ChangedProperties = false;
}
modlistPropertiesWindow.Show();
if(!modlistPropertiesWindow.IsClosed)
modlistPropertiesWindow.Show();
else
{
modlistPropertiesWindow = null;
OpenModListProperties();
}
}
}

View File

@ -62,5 +62,12 @@ namespace Wabbajack
Hide();
}
}
public bool IsClosed { get; private set; }
protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
IsClosed = true;
}
}
}