FIX:hide publish in the Chinese region

Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
tao wang 2023-04-19 19:59:07 +08:00 committed by Lane.Wei
parent b6005e957c
commit 2dbd2bcef9
7 changed files with 53 additions and 1 deletions

View file

@ -846,6 +846,23 @@ void MainFrame::update_title()
return;
}
void MainFrame::show_publish_button(bool show)
{
if (!m_menubar) return;
wxMenu* menu = m_menubar->GetMenu(3);
auto title = menu->GetTitle();
if (show) {
if (title != wxString::Format("&%s", _L("3D Models"))) {
m_menubar->Insert(3, publishMenu, wxString::Format("&%s", _L("3D Models")));
}
}
else {
m_menubar->Remove(3);
}
}
void MainFrame::update_title_colour_after_set_title()
{
#ifdef __APPLE__