diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index ac3aa32bd0..ad9cd1e669 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -866,7 +866,7 @@ void PresetBundle::remove_users_preset(AppConfig &config, std::mapis_user() && !it->user_id.empty() && it->user_id.compare(preset_folder_user_id) == 0 && check_removed(*it)) { + if (it->is_user() && it->user_id.compare(preset_folder_user_id) == 0 && check_removed(*it)) { BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(":printers erase %1%, type %2%, user_id %3%") % it->name % Preset::get_type_string(it->type) % it->user_id; if (it->name == printer_selected_preset_name) need_reset_printer_preset = true; diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index b465f0b678..5efdc62c7c 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -3962,15 +3962,15 @@ void GUI_App::on_user_login_handle(wxCommandEvent &evt) wxQueueEvent(this, evt); }); - if (app_config->get("sync_user_preset") == "true") { + + + if (online_login) + GUI::wxGetApp().mainframe->show_sync_dialog(); + else if (app_config->get("sync_user_preset") == "true") { enable_user_preset_folder(true); } else { enable_user_preset_folder(false); } - - if (online_login) - GUI::wxGetApp().mainframe->show_sync_dialog(); - //show publish button if (m_agent->is_user_login() && mainframe) { int identifier;