Fix issue #35: do not restore previous window if none selected on shutdown.

This commit is contained in:
Lorenz Cuno Klopfenstein 2012-12-30 12:35:43 +01:00
parent f4023f4163
commit 9119e242bc

View file

@ -86,6 +86,11 @@ namespace OnTopReplica {
Settings.Default.RestoreLastWindowHwnd = CurrentThumbnailWindowHandle.Handle.ToInt64();
Settings.Default.RestoreLastWindowClass = CurrentThumbnailWindowHandle.Class;
}
else {
Settings.Default.RestoreLastWindowTitle = string.Empty;
Settings.Default.RestoreLastWindowHwnd = 0;
Settings.Default.RestoreLastWindowClass = string.Empty;
}
_msgPumpManager.Dispose();
Program.Platform.CloseForm(this);