code: def refresh_save_all_action(self):
          
          editorstack = self.get_current_editorstack()
          if editorstack:
              state = any(finfo.editor.document().isModified() or finfo.newly_created
                          for finfo in editorstack.data)
              self.save_all_action.setEnabled(state)
docs: Enable 'Save All' if there are files to be saved