Made pop out windows not save close state when switching selection in queue.

This commit is contained in:
larsbrubaker 2016-01-24 20:06:04 -08:00
parent 02ace524cf
commit 0d7c56301a
3 changed files with 8 additions and 5 deletions

View file

@ -55,6 +55,8 @@ namespace MatterHackers.MatterControl
private string dataBaseKeyPrefix;
public static bool SaveIfClosed { get; set; }
#region Public Members
public PopOutManager(GuiWidget widgetWhosContentsPopOut, Vector2 minSize, string windowTitle, string dataBaseKeyPrefix)
@ -227,7 +229,7 @@ namespace MatterHackers.MatterControl
private void SaveWindowShouldStartClosed()
{
if (!MatterControlApplication.Instance.HasBeenClosed
&& !ApplicationController.Instance.Reloading)
&& PopOutManager.SaveIfClosed)
{
UserSettings.Instance.Fields.SetBool(WindowLeftOpenKey, false);
}