FileTypes preflet: save HVIF icons as attributes only
Previously, changing a file's icon was creating both an attribute and a ressource, now it only saves it as an attribute i.e. don't change the file content.
This commit is contained in:
parent
9766084650
commit
ff163a8803
@ -1235,6 +1235,7 @@ IconView::_SetIcon(BBitmap* large, BBitmap* mini, const uint8* data,
|
|||||||
BFile file(&fRef, B_READ_WRITE);
|
BFile file(&fRef, B_READ_WRITE);
|
||||||
|
|
||||||
BAppFileInfo info(&file);
|
BAppFileInfo info(&file);
|
||||||
|
info.SetInfoLocation(B_USE_ATTRIBUTES);
|
||||||
if (info.InitCheck() == B_OK) {
|
if (info.InitCheck() == B_OK) {
|
||||||
if (large != NULL || force)
|
if (large != NULL || force)
|
||||||
info.SetIconForType(fType.Type(), large, B_LARGE_ICON);
|
info.SetIconForType(fType.Type(), large, B_LARGE_ICON);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user