mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX:hide publish in the Chinese region
Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
@@ -2673,6 +2673,9 @@ bool GUI_App::on_init_inner()
|
||||
request_model_download(m_download_file_url);
|
||||
m_download_file_url = "";
|
||||
}
|
||||
|
||||
update_publish_status();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2911,6 +2914,24 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
void GUI_App::update_label_colours()
|
||||
{
|
||||
for (Tab* tab : tabs_list)
|
||||
@@ -3279,6 +3300,9 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
|
||||
// config_wizard_startup(true);
|
||||
// });
|
||||
|
||||
|
||||
update_publish_status();
|
||||
|
||||
m_is_recreating_gui = false;
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "recreate_GUI exit";
|
||||
|
||||
Reference in New Issue
Block a user