Skip to content

Commit

Permalink
Disable errors for progress dialog when building .NET solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ryevdokimov committed Aug 31, 2024
1 parent 9cdb766 commit c2f7ff0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions editor/progress_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void ProgressDialog::_popup() {

void ProgressDialog::add_task(const String &p_task, const String &p_label, int p_steps, bool p_can_cancel) {
if (MessageQueue::get_singleton()->is_flushing()) {
ERR_PRINT("Do not use progress dialog (task) while flushing the message queue or using call_deferred()!");
//ERR_PRINT("Do not use progress dialog (task) while flushing the message queue or using call_deferred()!");
return;
}

Expand Down Expand Up @@ -200,7 +200,10 @@ void ProgressDialog::add_task(const String &p_task, const String &p_label, int p
}

bool ProgressDialog::task_step(const String &p_task, const String &p_state, int p_step, bool p_force_redraw) {
ERR_FAIL_COND_V(!tasks.has(p_task), canceled);
//ERR_FAIL_COND_V(!tasks.has(p_task), canceled);
if (!tasks.has(p_task)) {
return canceled;
}

Task &t = tasks[p_task];
if (!p_force_redraw) {
Expand All @@ -223,7 +226,11 @@ bool ProgressDialog::task_step(const String &p_task, const String &p_state, int
}

void ProgressDialog::end_task(const String &p_task) {
ERR_FAIL_COND(!tasks.has(p_task));
//ERR_FAIL_COND(!tasks.has(p_task));
if (!tasks.has(p_task)) {
return;
}

Task &t = tasks[p_task];

memdelete(t.vb);
Expand Down

0 comments on commit c2f7ff0

Please sign in to comment.