mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 16:38:43 +03:00
Optimize Device
This commit is contained in:
@@ -282,7 +282,6 @@ void PrinterWebView::CreatThread() {
|
||||
break;
|
||||
|
||||
|
||||
BOOST_LOG_TRIVIAL(error) << "machine IP: " << (button->getIPLabel());
|
||||
std::unique_ptr<PrintHost> printhost(
|
||||
PrintHost::get_print_host_url((button->getIPLabel()).ToStdString(), (button->getIPLabel()).ToStdString()));
|
||||
if (!printhost) {
|
||||
@@ -482,13 +481,6 @@ void PrinterWebView::SetLoginStatus(bool status) {
|
||||
//y5
|
||||
std::string head_name = wxGetApp().app_config->get("user_head_name");
|
||||
wxString head_savePath = (boost::filesystem::path(Slic3r::data_dir()) / "user" / head_name).make_preferred().string();
|
||||
std::ifstream file(head_savePath);
|
||||
if (file.good()) {
|
||||
file.close();
|
||||
remove(head_savePath.c_str());
|
||||
}
|
||||
wxGetApp().app_config->set("user_head_url", "");
|
||||
wxGetApp().app_config->set("user_head_name", "");
|
||||
m_user_head_name = "";
|
||||
SetPresetChanged(true);
|
||||
UpdateState();
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
#include <boost/thread.hpp>
|
||||
#include "./Widgets/SwitchButton.hpp"
|
||||
#include "./Widgets/DeviceButton.hpp"
|
||||
|
||||
#include "../Utils/Moonraker.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
@@ -106,9 +109,12 @@ public:
|
||||
void StopStatusThread()
|
||||
{
|
||||
m_stopThread = true;
|
||||
//y6
|
||||
Moonraker::m_isStop = true;
|
||||
if (m_statusThread.joinable()) {
|
||||
m_statusThread.join();
|
||||
}
|
||||
Moonraker::m_isStop = false;
|
||||
};
|
||||
void SetPauseThread(bool status) { m_pauseThread = status; };
|
||||
void SetPresetChanged(bool status);
|
||||
|
||||
Reference in New Issue
Block a user