mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
FIX:fixed the publish button will be hidden after switch languages
Change-Id: I2f618d8440ebf7a00af6e7ad2bcda63746e04eef
This commit is contained in:
parent
8dabc0ce97
commit
fddd101685
1 changed files with 15 additions and 0 deletions
|
@ -3256,6 +3256,21 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
|
||||||
// config_wizard_startup(true);
|
// config_wizard_startup(true);
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
//show publish button
|
||||||
|
if (m_agent->is_user_login() && mainframe) {
|
||||||
|
int identifier;
|
||||||
|
int result = m_agent->get_user_info(&identifier);
|
||||||
|
auto publish_identifier = identifier & 1;
|
||||||
|
|
||||||
|
#ifdef __WINDOWS__
|
||||||
|
if (result == 0 && publish_identifier >= 0) {
|
||||||
|
mainframe->m_topbar->show_publish_button(publish_identifier == 0 ? false : true);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
mainframe->show_publish_button(publish_identifier == 0 ? false : true);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
m_is_recreating_gui = false;
|
m_is_recreating_gui = false;
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "recreate_GUI exit";
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "recreate_GUI exit";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue