mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
HaikuDepot: Show default icons early in list
Resolves #19205 Change-Id: I16def80ba004efbea4303f7d74ee87678a959027 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8511 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
This commit is contained in:
parent
905c332163
commit
1c4d43a6b0
@ -130,12 +130,14 @@ PackageIconTarRepository::PackageIconTarRepository()
|
||||
fDefaultIconCache(LIMIT_ICON_CACHE),
|
||||
fIconDataBuffer(new BMallocIO())
|
||||
{
|
||||
_InitDefaultVectorIcon();
|
||||
}
|
||||
|
||||
|
||||
PackageIconTarRepository::~PackageIconTarRepository()
|
||||
{
|
||||
delete fIconDataBuffer;
|
||||
delete fDefaultIconVectorData;
|
||||
}
|
||||
|
||||
|
||||
@ -159,8 +161,6 @@ PackageIconTarRepository::Init(BPath& tarPath)
|
||||
|
||||
_Close();
|
||||
|
||||
_InitDefaultVectorIcon();
|
||||
|
||||
status_t result = B_OK;
|
||||
|
||||
if (tarPath.Path() == NULL) {
|
||||
@ -214,10 +214,6 @@ PackageIconTarRepository::_Close()
|
||||
delete fTarIo;
|
||||
fTarIo = NULL;
|
||||
fIconTarPtrs.Clear();
|
||||
|
||||
delete fDefaultIconVectorData;
|
||||
fDefaultIconVectorData = NULL;
|
||||
fDefaultIconVectorDataSize = 0;
|
||||
fDefaultIconCache.Clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user