diff --git a/src/slic3r/GUI/UserAccountCommunication.cpp b/src/slic3r/GUI/UserAccountCommunication.cpp index 64fb93b3fb..a3c4a74402 100644 --- a/src/slic3r/GUI/UserAccountCommunication.cpp +++ b/src/slic3r/GUI/UserAccountCommunication.cpp @@ -45,8 +45,6 @@ namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { -wxDEFINE_EVENT(EVT_UA_NO_TOKENS, UserAccountFailEvent); - namespace { @@ -156,9 +154,6 @@ UserAccountCommunication::UserAccountCommunication(wxEvtHandler* evt_handler, Ap // perform login at the start, but only with tokens if (has_token) { do_login(); - } else { - // send evt so preset archive database knows it can sync - wxQueueEvent(evt_handler, new UserAccountFailEvent(EVT_UA_NO_TOKENS, {})); } } diff --git a/src/slic3r/GUI/UserAccountSession.hpp b/src/slic3r/GUI/UserAccountSession.hpp index 5e3ca273ad..8aaf161458 100644 --- a/src/slic3r/GUI/UserAccountSession.hpp +++ b/src/slic3r/GUI/UserAccountSession.hpp @@ -27,7 +27,6 @@ wxDECLARE_EVENT(EVT_UA_PRUSACONNECT_PRINTER_DATA_SUCCESS, UserAccountSuccessEven wxDECLARE_EVENT(EVT_UA_FAIL, UserAccountFailEvent); // Soft fail - clears only after some number of fails wxDECLARE_EVENT(EVT_UA_RESET, UserAccountFailEvent); // Hard fail - clears all wxDECLARE_EVENT(EVT_UA_PRUSACONNECT_PRINTER_DATA_FAIL, UserAccountFailEvent); // Failed to get data for printer to select, soft fail, action does not repeat -wxDECLARE_EVENT(EVT_UA_NO_TOKENS, UserAccountFailEvent); // when login wont be performed on startup typedef std::function UserActionSuccessFn;