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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user