FIX:fixed the issue publish menu being added twice

Change-Id: Id414e281749a08a285344eec818d03dc6af3846d
This commit is contained in:
tao wang 2022-11-23 10:58:33 +08:00 committed by Lane.Wei
parent 93a0d3a4ca
commit 8f498c7665

View file

@ -2380,13 +2380,6 @@ void MainFrame::init_menubar_as_editor()
m_menubar->Append(helpMenu, wxString::Format("&%s", _L("Help")));
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
#ifdef _MSW_DARK_MODE