FIX:fixed the mall system dialog not being destroyed

Change-Id: Ie453bdbb41e59da69987e24a7c2d5cc9f378aee4
This commit is contained in:
tao wang 2022-11-09 10:10:37 +08:00 committed by Lane.Wei
parent 7f3d9a8edd
commit 0320872e4e
3 changed files with 17 additions and 0 deletions

View file

@ -4950,6 +4950,20 @@ void GUI_App::open_publish_page_dialog()
}
}
void GUI_App::remove_mall_system_dialog()
{
if (m_mall_publish_dialog != nullptr) {
m_mall_publish_dialog->Destroy();
delete m_mall_publish_dialog;
}
if (m_mall_home_dialog != nullptr) {
m_mall_home_dialog->Destroy();
delete m_mall_home_dialog;
}
}
void GUI_App::run_script(wxString js)
{
if (mainframe)