mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX:fixed the issue publish menu being added twice
Change-Id: Id414e281749a08a285344eec818d03dc6af3846d
This commit is contained in:
@@ -2380,13 +2380,6 @@ void MainFrame::init_menubar_as_editor()
|
|||||||
m_menubar->Append(helpMenu, wxString::Format("&%s", _L("Help")));
|
m_menubar->Append(helpMenu, wxString::Format("&%s", _L("Help")));
|
||||||
SetMenuBar(m_menubar);
|
SetMenuBar(m_menubar);
|
||||||
|
|
||||||
if (wxGetApp().getAgent() && wxGetApp().getAgent()->is_user_login()) {
|
|
||||||
int identifier;
|
|
||||||
int result = wxGetApp().getAgent()->get_user_info(&identifier);
|
|
||||||
auto publish_identifier = identifier & 1;
|
|
||||||
show_publish_button(publish_identifier == 0 ? false : true);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSW_DARK_MODE
|
#ifdef _MSW_DARK_MODE
|
||||||
|
|||||||
Reference in New Issue
Block a user