mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
FIX:hide publish in the Chinese region
Change-Id: I39e6d96ab6fa14f25a284a5eaf9988dd37a42b6a
This commit is contained in:
parent
b6005e957c
commit
2dbd2bcef9
7 changed files with 53 additions and 1 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue