check if selected files in sidebar are both saved before compare