| 1191 | } |
| 1192 | |
| 1193 | void ProjectExportDialog::_patch_tree_item_edited() { |
| 1194 | TreeItem *item = patches->get_edited(); |
| 1195 | if (!item) { |
| 1196 | return; |
| 1197 | } |
| 1198 | |
| 1199 | Ref<EditorExportPreset> current = get_current_preset(); |
| 1200 | ERR_FAIL_COND(current.is_null()); |
| 1201 | |
| 1202 | int index = item->get_metadata(0); |
| 1203 | String patch_path = item->get_text(0); |
| 1204 | |
| 1205 | current->set_patch(index, patch_path); |
| 1206 | item->set_tooltip_text(0, patch_path); |
| 1207 | } |
| 1208 | |
| 1209 | void ProjectExportDialog::_patch_file_selected(const String &p_path) { |
| 1210 | Ref<EditorExportPreset> current = get_current_preset(); |
nothing calls this directly
no test coverage detected