I think you need to expand this question somewhat, it is not clear to me what you are asking at all.

Have you told it to generate the Gcode for the currently open model? If not then the Gcode you see in the Gcode tab is from last time it was used.