Tracker: Fix hiding/showing the draggable folder icon on navigation.

Fixes the icon disappearing when you navigated to or from the root.
This commit is contained in:
Augustin Cavalier 2022-09-09 16:14:09 -04:00
parent a0b9c84fe0
commit 4424256ac4

View File

@ -1692,13 +1692,14 @@ BContainerWindow::MessageReceived(BMessage* message)
// Folder icon should be visible, but in single
// window navigation, it might not be.
if (fDraggableIcon != NULL) {
IconCache::sIconCache->IconChanged(
TargetModel());
IconCache::sIconCache->IconChanged(TargetModel());
if (fDraggableIcon->IsHidden())
fDraggableIcon->Show();
fDraggableIcon->Invalidate();
} else
_AddFolderIcon();
} else if (fDraggableIcon != NULL)
fDraggableIcon->RemoveSelf();
fDraggableIcon->Hide();
}
// Update window title