1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Fix maximization resetting restore location and size

This commit is contained in:
chylex 2016-04-26 15:19:54 +02:00
parent 95fba6a99a
commit a6e40be79e

View File

@ -124,8 +124,12 @@ private void FormBrowser_ResizeEnd(object sender, EventArgs e){ // also triggers
if (Location.X != -32000){
Config.IsMaximized = WindowState == FormWindowState.Maximized;
Config.WindowLocation = Location;
Config.WindowSize = Size;
if (WindowState == FormWindowState.Normal){
Config.WindowLocation = Location;
Config.WindowSize = Size;
}
Config.Save();
}
}