mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fixes to make exporting more responsive.
-Process and drop input in step functions. -Hide editor file dialog right after pressing ok -Use actual editor file dialogs for project export.
This commit is contained in:
parent
e1d16e722e
commit
faaecd6987
5 changed files with 21 additions and 18 deletions
|
@ -161,6 +161,7 @@ void ProgressDialog::_popup() {
|
|||
main->set_margin(MARGIN_TOP, style->get_margin(MARGIN_TOP));
|
||||
main->set_margin(MARGIN_BOTTOM, -style->get_margin(MARGIN_BOTTOM));
|
||||
|
||||
raise();
|
||||
popup_centered(ms);
|
||||
}
|
||||
|
||||
|
@ -219,6 +220,8 @@ bool ProgressDialog::task_step(const String &p_task, const String &p_state, int
|
|||
last_progress_tick = OS::get_singleton()->get_ticks_usec();
|
||||
if (cancel_hb->is_visible()) {
|
||||
OS::get_singleton()->force_process_input();
|
||||
} else {
|
||||
OS::get_singleton()->process_and_drop_events();
|
||||
}
|
||||
Main::iteration(); // this will not work on a lot of platforms, so it's only meant for the editor
|
||||
return cancelled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue