ENH:update the entrance for model upload

Change-Id: I59a4a9d4802b31871601259c3a5766d789fc3b94
This commit is contained in:
tao wang 2023-06-19 15:52:37 +08:00 committed by Lane.Wei
parent 8e878ae92a
commit cbb69c415a
4 changed files with 43 additions and 26 deletions

View file

@ -2993,18 +2993,10 @@ void GUI_App::update_label_colours_from_appconfig()
void GUI_App::update_publish_status()
{
if (app_config->get_country_code() == "CN") {
#ifdef __WINDOWS__
mainframe->m_topbar->show_publish_button(false);
#else
mainframe->show_publish_button(false);
#endif
}
else {
#ifdef __WINDOWS__
mainframe->m_topbar->show_publish_button(true);
#else
mainframe->show_publish_button(true);
#endif
}
}