Made it so if we crash we can tell.
Made it so if we know we crashed we disable the 3d display o gcode (just in case). We can make more crash recovery now as well.
This commit is contained in:
parent
1697622477
commit
f788ccb6cd
8 changed files with 51 additions and 101 deletions
|
|
@ -65,7 +65,7 @@ namespace MatterHackers.MatterControl
|
|||
};
|
||||
|
||||
// start with the assumption we are open and only change this is we see it close
|
||||
UserSettings.Instance.Fields.SetValue(TerminalWindowLeftOpen, true);
|
||||
UserSettings.Instance.Fields.SetBool(TerminalWindowLeftOpen, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -75,7 +75,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public static void ShowIfLeftOpen()
|
||||
{
|
||||
if (UserSettings.Instance.Fields.GetValue(TerminalWindowLeftOpen, false))
|
||||
if (UserSettings.Instance.Fields.GetBool(TerminalWindowLeftOpen, false))
|
||||
{
|
||||
Show();
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ namespace MatterHackers.MatterControl
|
|||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
SaveOnClosing();
|
||||
UserSettings.Instance.Fields.SetValue(TerminalWindowLeftOpen, terminalWasOpenOnAppClose);
|
||||
UserSettings.Instance.Fields.SetBool(TerminalWindowLeftOpen, terminalWasOpenOnAppClose);
|
||||
|
||||
base.OnClosed(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue