From 541e20c5921f09e45a205e6c89183cfe9aa27513 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 16 Aug 2021 12:37:47 -0400 Subject: [PATCH] clientui: fix restoring sidepanel when expanding sidebar Closing and opening the sidebar when the side panel is collapsed currently expands the side panel to the most recently opened panel, even if it was collapsed at the time the sidebar was closed, and also incorrectly doesn't set the nav button as selected. This changes the behavior of expanding the sidebar to not open the side panel if it was not opened at the time the sidebar was closed. --- .../src/main/java/net/runelite/client/ui/ClientUI.java | 1 + 1 file changed, 1 insertion(+) diff --git a/runelite-client/src/main/java/net/runelite/client/ui/ClientUI.java b/runelite-client/src/main/java/net/runelite/client/ui/ClientUI.java index f36892d127..fbb85f09bb 100644 --- a/runelite-client/src/main/java/net/runelite/client/ui/ClientUI.java +++ b/runelite-client/src/main/java/net/runelite/client/ui/ClientUI.java @@ -211,6 +211,7 @@ public class ClientUI currentButton.setSelected(false); currentNavButton.setSelected(false); currentButton = null; + currentNavButton = null; } else {