1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Keep focus on floating window when showing ProgressDialog

This commit is contained in:
trollodel
2023-10-13 22:05:02 +02:00
parent 6916349697
commit 9ae48c72b4
3 changed files with 19 additions and 0 deletions

View File

@@ -81,6 +81,8 @@ class ProgressDialog : public PopupPanel {
VBoxContainer *main = nullptr;
uint64_t last_progress_tick;
LocalVector<Window *> host_windows;
static ProgressDialog *singleton;
void _popup();
@@ -96,6 +98,8 @@ public:
bool task_step(const String &p_task, const String &p_state, int p_step = -1, bool p_force_redraw = true);
void end_task(const String &p_task);
void add_host_window(Window *p_window);
ProgressDialog();
};