mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
FIX:disable the mall when there is no network plugin
Change-Id: I1f7d9c1e3de3e91f705593b23386d329cb28d3d8
This commit is contained in:
parent
47302b0cf9
commit
a9ac3657ca
1 changed files with 6 additions and 5 deletions
|
@ -4907,9 +4907,10 @@ 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();
|
||||||
|
@ -4919,9 +4920,9 @@ void GUI_App::open_mall_page_dialog()
|
||||||
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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue