| 75 | } |
| 76 | |
| 77 | void GodotREEditorStandalone::progress_add_task(const String &p_task, const String &p_label, int p_steps, bool p_can_cancel) { |
| 78 | if (!singleton) { |
| 79 | return; |
| 80 | // } else if (singleton->cmdline_export_mode) { |
| 81 | // print_line(p_task + ": begin: " + p_label + " steps: " + itos(p_steps)); |
| 82 | } else if (singleton->progress_dialog) { |
| 83 | singleton->progress_dialog->add_task(p_task, p_label, p_steps, p_can_cancel); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | bool GodotREEditorStandalone::progress_task_step(const String &p_task, const String &p_state, int p_step, bool p_force_refresh) { |
| 88 | if (!singleton) { |