Main wnd and sidebar preserve last state(open/closed) on logout or reload ui
Petr G [06-09-16 - 05:35]
Main wnd and sidebar preserve last state(open/closed) on logout or reload ui
diff --git a/ViragDevTool.lua b/ViragDevTool.lua
index 88b4b6a..ceb57c1 100644
--- a/ViragDevTool.lua
+++ b/ViragDevTool.lua
@@ -569,6 +569,7 @@ end
-----------------------------------------------------------------------------------------------
function ViragDevTool:ToggleSidebar()
self:Toggle(self.wndRef.sideFrame)
+ self.settings.isSideBarOpen = self.wndRef.sideFrame:IsVisible()
self:UpdateSideBarUI()
end