FIX: [STUDIO-4546] not show model mall on init
Change-Id: Icebbebb6c272292725f8a4d0235b8342c3dfd9a2 Jira: STUDIO-4546
This commit is contained in:
parent
d7778359ad
commit
f183058b20
|
@ -3018,7 +3018,7 @@ void GUI_App::update_publish_status()
|
|||
|
||||
bool GUI_App::has_model_mall()
|
||||
{
|
||||
if (auto cc = app_config->get_country_code(); cc == "CN" || cc == "")
|
||||
if (auto cc = app_config->get_region(); cc == "CNH" || cc == "China" || cc == "")
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -497,7 +497,7 @@ void WebViewPanel::get_design_staffpick(int offset, int limit, std::function<voi
|
|||
.header("Content-Type", "application/json")
|
||||
.on_complete([this, callback](std::string body, unsigned status) { callback(body); })
|
||||
.on_error([this, callback](std::string body, std::string error, unsigned status) {
|
||||
callback(body);
|
||||
callback(body + error);
|
||||
})
|
||||
.perform();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue