mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
FIX:disable the mall when there is no network plugin
Change-Id: I1f7d9c1e3de3e91f705593b23386d329cb28d3d8
This commit is contained in:
@@ -4907,21 +4907,22 @@ void GUI_App::load_url(wxString url)
|
|||||||
void GUI_App::open_mall_page_dialog()
|
void GUI_App::open_mall_page_dialog()
|
||||||
{
|
{
|
||||||
std::string url;
|
std::string url;
|
||||||
getAgent()->get_model_mall_home_url(&url);
|
|
||||||
|
|
||||||
if (mainframe) {
|
if (getAgent() && mainframe) {
|
||||||
|
getAgent()->get_model_mall_home_url(&url);
|
||||||
|
|
||||||
ModelMallDialog modelMallDialog;
|
ModelMallDialog modelMallDialog;
|
||||||
modelMallDialog.go_to_mall(url);
|
modelMallDialog.go_to_mall(url);
|
||||||
modelMallDialog.ShowModal();
|
modelMallDialog.ShowModal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI_App::open_publish_page_dialog()
|
void GUI_App::open_publish_page_dialog()
|
||||||
{
|
{
|
||||||
std::string url;
|
std::string url;
|
||||||
getAgent()->get_model_publish_url(&url);
|
if (getAgent() && mainframe) {
|
||||||
|
getAgent()->get_model_publish_url(&url);
|
||||||
|
|
||||||
if (mainframe) {
|
|
||||||
ModelMallDialog modelMallDialog;
|
ModelMallDialog modelMallDialog;
|
||||||
modelMallDialog.go_to_publish(url);
|
modelMallDialog.go_to_publish(url);
|
||||||
modelMallDialog.ShowModal();
|
modelMallDialog.ShowModal();
|
||||||
|
|||||||
Reference in New Issue
Block a user