mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
FIX: fix HMS display blank string
Change-Id: I36fe5879a5db76fba65095ce409b3f0060689de6 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
fae9036f01
commit
66a2f49008
2 changed files with 13 additions and 4 deletions
|
@ -148,7 +148,13 @@ HMSPanel::~HMSPanel() {
|
|||
|
||||
void HMSPanel::append_hms_panel(HMSItem& item) {
|
||||
m_notify_item = new HMSNotifyItem(m_scrolledWindow, item);
|
||||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
wxString msg = wxGetApp().get_hms_query()->query_hms_msg(item.get_long_error_code());
|
||||
if (!msg.empty())
|
||||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
else {
|
||||
// debug for hms display error info
|
||||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
}
|
||||
}
|
||||
|
||||
void HMSPanel::delete_hms_panels() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue