mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Fix Window
controls element not being added to scene after libretro save state deserialization
This commit is contained in:
parent
717072c0a4
commit
595ff58746
1 changed files with 5 additions and 0 deletions
|
@ -1065,6 +1065,8 @@ void Window::sandbox_deserialize_begin()
|
|||
|
||||
if (isDisposed()) return;
|
||||
|
||||
p->controlsElement.sandbox_deserialize_begin_viewport_element();
|
||||
|
||||
p->windowskinDispCon.disconnect();
|
||||
|
||||
p->contentsDispCon.disconnect();
|
||||
|
@ -1084,6 +1086,9 @@ void Window::sandbox_deserialize_end()
|
|||
if (isDisposed()) return;
|
||||
sandbox_deserialize_end_viewport_element();
|
||||
|
||||
if (isDisposed()) return;
|
||||
p->controlsElement.sandbox_deserialize_end_viewport_element();
|
||||
|
||||
if (isDisposed()) return;
|
||||
if (p->windowskin != nullptr) {
|
||||
p->windowskinDispCon = p->windowskin->wasDisposed.connect(&WindowPrivate::windowskinDisposal, p);
|
||||
|
|
Loading…
Add table
Reference in a new issue