Use ObjectID in ProgressDialog Window list

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
kobewi
2025-12-17 22:01:51 +01:00
parent 71112a248d
commit 51348a2cef
3 changed files with 23 additions and 14 deletions
+3 -3
View File
@@ -383,12 +383,12 @@ WindowWrapper::WindowWrapper() {
window_background->set_anchors_and_offsets_preset(PRESET_FULL_RECT);
window->add_child(window_background);
ProgressDialog::get_singleton()->add_host_window(window);
ProgressDialog::get_singleton()->add_host_window(window_id);
}
WindowWrapper::~WindowWrapper() {
if (ObjectDB::get_instance(window_id)) {
ProgressDialog::get_singleton()->remove_host_window(window);
if (ProgressDialog::get_singleton()) {
ProgressDialog::get_singleton()->remove_host_window(window_id);
}
}