code: def edit_filter(self):
          
          filters, valid = QInputDialog.getText(self, _('Edit filename filters'),
                                                _('Name filters:'),
                                                QLineEdit.Normal,
                                                ", ".join(self.name_filters))
          if valid:
              filters = [f.strip() for f in to_text_string(filters).split(',')]
              self.parent_widget.sig_option_changed.emit('name_filters', filters)
              self.set_name_filters(filters)
docs: Edit name filters