FIX:mall window minimization will no longer refresh web page

Change-Id: I22552e793ab0f3acdaa50e916ee81f9977d0f859
(cherry picked from commit 56ef8886f64b4e294840d602850f832b38b5989b)
This commit is contained in:
tao wang 2022-11-01 11:05:05 +08:00 committed by Lane.Wei
parent 7b3621bb0c
commit 17bc464bac

View file

@ -14,7 +14,7 @@
namespace Slic3r { namespace Slic3r {
namespace GUI { namespace GUI {
ModelMallDialog::ModelMallDialog(Plater* plater /*= nullptr*/) ModelMallDialog::ModelMallDialog(Plater* plater /*= nullptr*/)
:DPIDialog(static_cast<wxWindow*>(wxGetApp().mainframe), wxID_ANY, _L("3D Models"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX) :DPIDialog(static_cast<wxWindow*>(nullptr), wxID_ANY, _L("3D Models"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxDIALOG_NO_PARENT|wxMINIMIZE_BOX)
{ {
// icon // icon
std::string icon_path = (boost::format("%1%/images/BambuStudioTitle.ico") % resources_dir()).str(); std::string icon_path = (boost::format("%1%/images/BambuStudioTitle.ico") % resources_dir()).str();
@ -171,9 +171,9 @@ namespace GUI {
if (event.IsShown()) { if (event.IsShown()) {
Centre(wxBOTH); Centre(wxBOTH);
} }
else { /*else {
go_to_url(m_url); go_to_url(m_url);
} }*/
event.Skip(); event.Skip();
} }