NEW:update the style when the virtual tray is empty

Change-Id: I40fc05ce31ed9225e5dea6d080fdbff138b2f9d8
This commit is contained in:
tao wang 2023-05-25 14:28:53 +08:00 committed by Lane.Wei
parent c1010e5d0e
commit 73d3b37979
4 changed files with 35 additions and 5 deletions

View file

@ -736,10 +736,10 @@ void AMSLib::render(wxDC &dc)
|| m_info.material_state == AMSCanType::AMS_CAN_TYPE_BRAND
|| m_info.material_state == AMSCanType::AMS_CAN_TYPE_VIRTUAL) {
if (m_info.material_name.empty() && m_info.material_state != AMSCanType::AMS_CAN_TYPE_VIRTUAL) {
if (m_info.material_name.empty() /*&& m_info.material_state != AMSCanType::AMS_CAN_TYPE_VIRTUAL*/) {
auto tsize = dc.GetMultiLineTextExtent("?");
auto pot = wxPoint(0, 0);
if (m_show_kn) {
if (m_obj->is_function_supported(PrinterFunction::FUNC_EXTRUSION_CALI)) {
pot = wxPoint((libsize.x - tsize.x) / 2, (libsize.y - tsize.y) / 2 - FromDIP(9));
} else {
pot = wxPoint((libsize.x - tsize.x) / 2, (libsize.y - tsize.y) / 2 + FromDIP(3));