mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-06-02 02:24:32 +12:00
Fix issue #35: do not restore previous window if none selected on shutdown.
This commit is contained in:
parent
f4023f4163
commit
9119e242bc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue