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();
|
final Rectangle bounds = frame.getBounds();
|
||||||
|
|
||||||
|
if (config.automaticResizeType() == ExpandResizeType.KEEP_GAME_SIZE)
|
||||||
|
{
|
||||||
// Try to contract sidebar
|
// Try to contract sidebar
|
||||||
if (sidebarOpen)
|
if (sidebarOpen)
|
||||||
{
|
{
|
||||||
@@ -766,6 +768,7 @@ public class ClientUI
|
|||||||
{
|
{
|
||||||
bounds.width -= pluginPanel.getWrappedPanel().getPreferredSize().width;
|
bounds.width -= pluginPanel.getWrappedPanel().getPreferredSize().width;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
configManager.unsetConfiguration(CONFIG_GROUP, CONFIG_CLIENT_MAXIMIZED);
|
configManager.unsetConfiguration(CONFIG_GROUP, CONFIG_CLIENT_MAXIMIZED);
|
||||||
configManager.setConfiguration(CONFIG_GROUP, CONFIG_CLIENT_BOUNDS, bounds);
|
configManager.setConfiguration(CONFIG_GROUP, CONFIG_CLIENT_BOUNDS, bounds);
|
||||||
|
|||||||
Reference in New Issue
Block a user