def METHOD_NAME(self, checked):
    if self.dialog_widget.create_torrent_files_list.count() == 0:
        dialog = ConfirmationDialog(
            self.dialog_widget,
            tr("Warning!"),
            tr("You should add at least one file to your torrent."),
            [(tr("CLOSE"), BUTTON_TYPE_NORMAL)],
        )
        connect(dialog.button_clicked, dialog.close_dialog)
        dialog.show()
        return
    self.dialog_widget.btn_create.setEnabled(False)
    files_list = []
    for ind in range(self.dialog_widget.create_torrent_files_list.count()):
        file_str = self.dialog_widget.create_torrent_files_list.item(ind).text()
        files_list.append(file_str)
    export_dir = self.dialog_widget.file_export_dir.text()
    if not os.path.exists(export_dir):
        ConfirmationDialog.show_error(
            self.dialog_widget, tr("Cannot save torrent file to %s") % export_dir, tr("Path does not exist")
        )
        return
    is_writable, error = is_dir_writable(export_dir)
    if not is_writable:
        ConfirmationDialog.show_error(
            self.dialog_widget, tr("Cannot save torrent file to %s") % export_dir, tr("Error: %s ") % str(error)
        )
        return
    torrent_name = self.dialog_widget.create_torrent_name_field.text()
    self.name = sanitize_filename(torrent_name)
    description = self.dialog_widget.create_torrent_description_field.toPlainText()
    is_seed = self.dialog_widget.seed_after_adding_checkbox.isChecked()
    self.rest_request1 = request_manager.post(
        endpoint='createtorrent',
        on_success=self.on_torrent_created,
        url_params={'download': 1} if is_seed else None,
        data={"name": self.name, "description": description, "files": files_list, "export_dir": export_dir},
    )
    self.dialog_widget.edit_channel_create_torrent_progress_label.setText(tr("Creating torrent. Please wait..."))