ICNSTranslator: Add icon number for multi-element files
This commit is contained in:
parent
69fb792e76
commit
0810cfe451
@ -139,7 +139,10 @@ ICNSTranslator::DerivedIdentify(BPositionIO *stream,
|
||||
info->group = B_TRANSLATOR_BITMAP;
|
||||
info->quality = ICNS_IN_QUALITY;
|
||||
info->capability = ICNS_IN_CAPABILITY;
|
||||
snprintf(info->name, sizeof(info->name), "Apple icon");
|
||||
BString iconName("Apple icon");
|
||||
if (documentCount > 1)
|
||||
iconName << " #" << documentIndex;
|
||||
snprintf(info->name, sizeof(info->name), iconName.String());
|
||||
strcpy(info->MIME, kICNSMimeType);
|
||||
|
||||
return B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user