code: def has_unsaved_changes(self):
          
          for w in self.windows():
              if w.editor_buffer.has_unsaved_changes:
                  return True
          return False
docs: True when any of the visible buffers in this tab has unsaved changes.