Use ObjectID in ProgressDialog Window list
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user