FIX:fixed the publish button will be hidden after switch languages

Change-Id: I2f618d8440ebf7a00af6e7ad2bcda63746e04eef
This commit is contained in:
tao wang 2023-04-03 15:54:48 +08:00 committed by Lane.Wei
parent 8dabc0ce97
commit fddd101685

View file

@ -3256,6 +3256,21 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
// 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;
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "recreate_GUI exit";