Paint Edit > Layer Operation > Merge Visible Layers
 
 
 

Merges all paint layers that are visible. To retain some layers, turn off their visibility by clicking the eye icon before performing a merge.