Mistake in ba25023d22, updated the drawing code with the wrong function call. So when setting the add-ons category to "User", add-ons installed in the user paths (custom paths configured in Preferences) wouldn't show up.
ba25023d22
mat==None
bl_ui_utils.layout.operator_context