Fix remember screen bounds for KEEP_GAME_SIZE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user