FIX: hide the internal HMS message

jira: [STUDIO-10363]
Change-Id: I0b68d8ddde4b1b1277fd828e17f568fcdc81adb6
(cherry picked from commit b10ab774477c2fb3dc9ef4b81005b3daa3f618f4)
This commit is contained in:
xin.zhang
2025-02-19 10:04:26 +08:00
committed by Noisyfox
parent 820f12a16b
commit 2084b59cce
3 changed files with 12 additions and 6 deletions

View File

@@ -188,11 +188,11 @@ HMSPanel::~HMSPanel() {
}
void HMSPanel::append_hms_panel(const std::string& dev_id, HMSItem& item) {
m_notify_item = new HMSNotifyItem(dev_id, m_scrolledWindow, item);
wxString msg = wxGetApp().get_hms_query()->query_hms_msg(dev_id, item.get_long_error_code());
if (!msg.empty())
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
else {
if (!msg.empty()) {
HMSNotifyItem *notify_item = new HMSNotifyItem(dev_id, m_scrolledWindow, item);
m_top_sizer->Add(notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
} else {
// debug for hms display error info
// m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
BOOST_LOG_TRIVIAL(info) << "hms: do not display empty_item";