Skip to content

Commit

Permalink
Do not save automatic layouts if the process is killed or OS is shutt…
Browse files Browse the repository at this point in the history
…ing down.
  • Loading branch information
vityank committed Apr 17, 2020
1 parent 5c7f250 commit 641070c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SuperPutty/frmSuperPutty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected override void OnFormClosed(FormClosedEventArgs e)
}

// save layout for auto-restore
if (SuperPuTTY.Settings.DefaultLayoutName == LayoutData.AutoRestore)
if (SuperPuTTY.Settings.DefaultLayoutName == LayoutData.AutoRestore && e.CloseReason != CloseReason.TaskManagerClosing && e.CloseReason != CloseReason.WindowsShutDown)
{
SaveLayout(SuperPuTTY.AutoRestoreLayoutPath, "Saving auto-restore layout");
}
Expand Down

0 comments on commit 641070c

Please sign in to comment.