diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 4bac7aa8b..420af4de0 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4593,12 +4593,12 @@ void GUI_App::sync_preset(Preset* preset) if (http_code >= 400 && values_map["code"] == "14") { // Limit m_create_preset_blocked[preset->type] = true; - plater()->get_notification_manager()->push_notification(NotificationType::BBLUserPresetExceedLimit); - static bool dialog_notified = false; - if (dialog_notified) - return; - dialog_notified = true; CallAfter([this] { + plater()->get_notification_manager()->push_notification(NotificationType::BBLUserPresetExceedLimit); + static bool dialog_notified = false; + if (dialog_notified) + return; + dialog_notified = true; if (mainframe == nullptr) return; auto msg = _L("The number of user presets cached in the cloud has exceeded the upper limit, newly created user presets can only be used locally."); diff --git a/src/slic3r/GUI/MediaPlayCtrl.cpp b/src/slic3r/GUI/MediaPlayCtrl.cpp index b0717345c..941d1136e 100644 --- a/src/slic3r/GUI/MediaPlayCtrl.cpp +++ b/src/slic3r/GUI/MediaPlayCtrl.cpp @@ -417,6 +417,7 @@ void MediaPlayCtrl::ToggleStream() file.write(url2.c_str(), url2.size()); file.close(); m_streaming = true; + return; } NetworkAgent *agent = wxGetApp().getAgent(); if (!agent) return;