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:
parent
a0b9c84fe0
commit
4424256ac4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user