From 8f498c7665372ac30c0f594a1208cfb3c5f5b2c9 Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 23 Nov 2022 10:58:33 +0800 Subject: [PATCH] FIX:fixed the issue publish menu being added twice Change-Id: Id414e281749a08a285344eec818d03dc6af3846d --- src/slic3r/GUI/MainFrame.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index ae10d79a43..324fb07090 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -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