mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-30 14:22:07 +00:00
feature add get pc name function
This commit is contained in:
@@ -1030,6 +1030,8 @@ void MainFrame::get_local_webview_version()
|
|||||||
|
|
||||||
std::ifstream json_file(versionFilePath);
|
std::ifstream json_file(versionFilePath);
|
||||||
if (!json_file.is_open()) {
|
if (!json_file.is_open()) {
|
||||||
|
std::ifstream json_file(versionFilePath);
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "check flutter version error with file path:" << versionFilePath;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
nlohmann::json json_data;
|
nlohmann::json json_data;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <boost/nowide/convert.hpp>
|
#include <boost/nowide/convert.hpp>
|
||||||
#include <boost/property_tree/ptree.hpp>
|
#include <boost/property_tree/ptree.hpp>
|
||||||
#include <boost/property_tree/json_parser.hpp>
|
#include <boost/property_tree/json_parser.hpp>
|
||||||
|
#include <boost/asio/ip/host_name.hpp>
|
||||||
|
|
||||||
#include <slic3r/GUI/Widgets/WebView.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
|
// 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")
|
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