code: def refresh_plugin(self):
          
          if self.tabwidget.count():
              editor = self.tabwidget.currentWidget()
          else:
              editor = None
          self.find_widget.set_editor(editor)
docs: Refresh tabwidget