FIX:hide publish in the Chinese region

Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent b6005e957c
commit 2dbd2bcef9
7 files changed
+53 -1

No files matched your search

+17
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__