diff --git a/src/slic3r/GUI/WebViewPlatformUtilsWin32.cpp b/src/slic3r/GUI/WebViewPlatformUtilsWin32.cpp index feb18b52e4..4e98a0d7dc 100644 --- a/src/slic3r/GUI/WebViewPlatformUtilsWin32.cpp +++ b/src/slic3r/GUI/WebViewPlatformUtilsWin32.cpp @@ -133,13 +133,13 @@ void delete_cookies(wxWebView* webview, const std::string& url) for (const auto& cookie : ptree.get_child("cookies")) { std::string name = cookie.second.get("name"); std::string domain = cookie.second.get("domain"); - //BOOST_LOG_TRIVIAL(debug) << "Deleting cookie: " << name << " : " << domain; // Delete cookie by name and domain wxString name_and_domain = GUI::format_wxstr(L"{\"name\": \"%1%\", \"domain\": \"%2%\"}", name, domain); webView2->CallDevToolsProtocolMethod(L"Network.deleteCookies", name_and_domain.c_str(), Microsoft::WRL::Callback( [](HRESULT errorCode, LPCWSTR resultJson) -> HRESULT { return S_OK; }).Get()); - } + } + return S_OK; } ).Get());