To exit layout editing mode and save changes, click theĀ button to open the context menu of the layouts ribbon and select Save layout / Exit (1).
To exit editing mode without saving changes, select Revert changes (2).