Updated builtinViewColumns.ammoIcon to use CachingImageList.GetImageIndex
This commit is contained in:
@@ -44,11 +44,7 @@ class AmmoIcon(ViewColumn):
|
|||||||
else:
|
else:
|
||||||
iconFile = stuff.charge.icon.iconFile if stuff.item.icon else ""
|
iconFile = stuff.charge.icon.iconFile if stuff.item.icon else ""
|
||||||
if iconFile:
|
if iconFile:
|
||||||
bitmap = bitmapLoader.getBitmap(iconFile, "pack")
|
return self.fittingView.imageList.GetImageIndex(iconFile, "pack")
|
||||||
if bitmap is None:
|
|
||||||
return -1
|
|
||||||
else:
|
|
||||||
return self.fittingView.imageList.Add(bitmap)
|
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user