ENH: clean codes about device
JIRA: [STUDIO-13609] Change-Id: I591de7033360b9570600006cfbce2148a8d031d5 (cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include <wx/listimpl.cpp>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
|
||||
#include "DeviceCore/DevManager.h"
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
@@ -176,7 +178,7 @@ void MultiTaskItem::update_info()
|
||||
void MultiTaskItem::onPause()
|
||||
{
|
||||
if (get_obj() && !get_obj()->can_resume()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: pause current print task dev_id =" << get_obj()->dev_id;
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: pause current print task dev_id =" << get_obj()->get_dev_id();
|
||||
get_obj()->command_task_pause();
|
||||
m_button_pause->Hide();
|
||||
m_button_resume->Show();
|
||||
@@ -187,7 +189,7 @@ void MultiTaskItem::onPause()
|
||||
void MultiTaskItem::onResume()
|
||||
{
|
||||
if (get_obj() && get_obj()->can_resume()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: resume current print task dev_id =" << get_obj()->dev_id;
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: resume current print task dev_id =" << get_obj()->get_dev_id();
|
||||
get_obj()->command_task_resume();
|
||||
m_button_pause->Show();
|
||||
m_button_resume->Hide();
|
||||
@@ -198,7 +200,7 @@ void MultiTaskItem::onResume()
|
||||
void MultiTaskItem::onStop()
|
||||
{
|
||||
if (get_obj()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: abort current print task dev_id =" << get_obj()->dev_id;
|
||||
BOOST_LOG_TRIVIAL(info) << "MultiTask: abort current print task dev_id =" << get_obj()->get_dev_id();
|
||||
get_obj()->command_task_abort();
|
||||
m_button_pause->Hide();
|
||||
m_button_resume->Hide();
|
||||
|
||||
Reference in New Issue
Block a user