Skip to content

Commit

Permalink
[Sidebar] Fixed bad undocking when triggered from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xeleh committed Apr 15, 2020
1 parent 21efbbb commit 865d983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Editor/Sidebar/SidebarSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ public override void OnChange() {
Sidebar sidebar = Host.GetWindow<Sidebar>();
if (sidebar != null) {
if (!enabled) {
sidebar.Close();
Sidebar.Hide();
return;
}
if (dockingSide != Sidebar.dockingSide) {
sidebar.Close();
Sidebar.Hide();
Sidebar.Toggle();
return;
}
Expand Down

0 comments on commit 865d983

Please sign in to comment.