Use ObjectID in ProgressDialog Window list
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
parent
71112a248d
commit
51348a2cef
3 changed files with 23 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue