Fix bug where sometimes navigating to directory browse would not correctly hightlight the "browse" button in the shortcuts bar

This commit is contained in:
casey langen 2021-04-12 21:59:30 -07:00
parent 6fd0c537b4
commit 6914702131

View File

@ -279,7 +279,9 @@ void LibraryLayout::UpdateShortcutsWindow() {
if (this->shortcuts->IsFocused() && this->visibleLayout) {
this->visibleLayout->SetFocus(IWindowPtr());
}
if (this->visibleLayout == this->browseLayout) {
if (this->visibleLayout == this->browseLayout ||
this->visibleLayout == this->directoryLayout)
{
this->shortcuts->SetActive(Hotkeys::Get(Hotkeys::NavigateLibraryBrowse));
}
else if (this->visibleLayout == nowPlayingLayout) {