mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IJPL-172075 Fix custom external action icons
The problem with using getActionOrStub as the action supplier to get the custom icon is that if the action isn't loaded yet, then its stub will have a null icon. Therefore, customization doesn't work. Performance considerations: it shouldn't cause any serious performance issues unless there are very many icon customizations, which is normally not the case. (cherry picked from commit 4fa084bdcaebe8e06dc26f4004a6eeac33dd36a1) IJ-CR-152585 GitOrigin-RevId: ea864f92b2f1b745e62cf8497ddf8c3af01cd467
This commit is contained in:
committed by
intellij-monorepo-bot
parent
82f14358db
commit
4aaddd0702
@@ -449,7 +449,7 @@ class CustomActionsSchema(private val coroutineScope: CoroutineScope?) : Persist
|
||||
continue
|
||||
}
|
||||
|
||||
initActionIcon(anAction = action, actionId = actionId, actionSupplier = { actionManager.getActionOrStub(it) })
|
||||
initActionIcon(anAction = action, actionId = actionId, actionSupplier = { actionManager.getAction(it) })
|
||||
PresentationFactory.updatePresentation(action)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user