Fix remember screen bounds for KEEP_GAME_SIZE

This commit is contained in:
WooxSolo
2018-05-30 20:48:24 +02:00
parent 13ecc3efc9
commit 966ee101d3

View File

@@ -755,6 +755,8 @@ public class ClientUI
{
final Rectangle bounds = frame.getBounds();
if (config.automaticResizeType() == ExpandResizeType.KEEP_GAME_SIZE)
{
// Try to contract sidebar
if (sidebarOpen)
{
@@ -766,6 +768,7 @@ public class ClientUI
{
bounds.width -= pluginPanel.getWrappedPanel().getPreferredSize().width;
}
}
configManager.unsetConfiguration(CONFIG_GROUP, CONFIG_CLIENT_MAXIMIZED);
configManager.setConfiguration(CONFIG_GROUP, CONFIG_CLIENT_BOUNDS, bounds);