mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX:hide publish in the Chinese region
Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user