mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 19:02:10 +00:00
feature add get pc name function
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <boost/nowide/convert.hpp>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/property_tree/json_parser.hpp>
|
||||
#include <boost/asio/ip/host_name.hpp>
|
||||
|
||||
#include <slic3r/GUI/Widgets/WebView.hpp>
|
||||
|
||||
@@ -90,6 +91,8 @@ bool WCP_Logger::set_level(wxString& level)
|
||||
}
|
||||
}
|
||||
|
||||
std::string WCP_Logger::get_pc_name() { return boost::asio::ip::host_name(); }
|
||||
|
||||
// Add a log message to the queue
|
||||
void WCP_Logger::add_log(const wxString& content, bool is_web = false, wxString time = "", wxString module = "Default", wxString level = "debug")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user