code: def selected(self):
          
          self.selected_text = self.currentText()
          self.valid.emit(True, True)
          self.open_dir.emit(self.selected_text)
docs: Action to be executed when a valid item has been selected