mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX:hide publish in the Chinese region
Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
parent
b6005e957c
commit
2dbd2bcef9
7 changed files with 53 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue