Work pieces

If I have 2 work pieces on the bottom of the screen and I save a g-code, does that save a cut for both work pieces or just the one that is active on the screen?

This.