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