From 4424256ac4ddbe6bc693a7e961532f45fadbd40b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 9 Sep 2022 16:14:09 -0400 Subject: [PATCH] Tracker: Fix hiding/showing the draggable folder icon on navigation. Fixes the icon disappearing when you navigated to or from the root. --- src/kits/tracker/ContainerWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 62c1328b59..154e615694 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -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