Skip to content

Commit 6914702

Browse files
committed
Fix bug where sometimes navigating to directory browse would not correctly hightlight the "browse" button in the shortcuts bar
1 parent 6fd0c53 commit 6914702

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/musikcube/app/layout/LibraryLayout.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ void LibraryLayout::UpdateShortcutsWindow() {
279279
if (this->shortcuts->IsFocused() && this->visibleLayout) {
280280
this->visibleLayout->SetFocus(IWindowPtr());
281281
}
282-
if (this->visibleLayout == this->browseLayout) {
282+
if (this->visibleLayout == this->browseLayout ||
283+
this->visibleLayout == this->directoryLayout)
284+
{
283285
this->shortcuts->SetActive(Hotkeys::Get(Hotkeys::NavigateLibraryBrowse));
284286
}
285287
else if (this->visibleLayout == nowPlayingLayout) {

0 commit comments

Comments
 (0)