FIX: hide the internal HMS message
jira: [STUDIO-10363] Change-Id: I0b68d8ddde4b1b1277fd828e17f568fcdc81adb6
This commit is contained in:
parent
b36c41e514
commit
b10ab77447
|
@ -188,11 +188,11 @@ HMSPanel::~HMSPanel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HMSPanel::append_hms_panel(const std::string& dev_id, HMSItem& item) {
|
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());
|
wxString msg = wxGetApp().get_hms_query()->query_hms_msg(dev_id, item.get_long_error_code());
|
||||||
if (!msg.empty())
|
if (!msg.empty()) {
|
||||||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
HMSNotifyItem *notify_item = new HMSNotifyItem(dev_id, m_scrolledWindow, item);
|
||||||
else {
|
m_top_sizer->Add(notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||||
|
} else {
|
||||||
// debug for hms display error info
|
// debug for hms display error info
|
||||||
// m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
// m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||||
BOOST_LOG_TRIVIAL(info) << "hms: do not display empty_item";
|
BOOST_LOG_TRIVIAL(info) << "hms: do not display empty_item";
|
||||||
|
|
|
@ -47,7 +47,7 @@ class HMSPanel : public wxPanel
|
||||||
protected:
|
protected:
|
||||||
wxScrolledWindow *m_scrolledWindow;
|
wxScrolledWindow *m_scrolledWindow;
|
||||||
wxBoxSizer * m_top_sizer;
|
wxBoxSizer * m_top_sizer;
|
||||||
HMSNotifyItem * m_notify_item;
|
|
||||||
int last_status;
|
int last_status;
|
||||||
|
|
||||||
void append_hms_panel(const std::string& dev_id, HMSItem &item);
|
void append_hms_panel(const std::string& dev_id, HMSItem &item);
|
||||||
|
|
|
@ -439,6 +439,12 @@ void MonitorPanel::update_all()
|
||||||
void MonitorPanel::update_hms_tag()
|
void MonitorPanel::update_hms_tag()
|
||||||
{
|
{
|
||||||
for (auto hmsitem : m_hms_panel->temp_hms_list) {
|
for (auto hmsitem : m_hms_panel->temp_hms_list) {
|
||||||
|
|
||||||
|
if (!obj) { break;}
|
||||||
|
|
||||||
|
const wxString &msg = wxGetApp().get_hms_query()->query_hms_msg(obj->dev_id, hmsitem.second.get_long_error_code());
|
||||||
|
if (msg.empty()){ continue;} /*STUDIO-10363 it's hidden message*/
|
||||||
|
|
||||||
if (!hmsitem.second.already_read) {
|
if (!hmsitem.second.already_read) {
|
||||||
//show HMS new tag
|
//show HMS new tag
|
||||||
m_tabpanel->GetBtnsListCtrl()->showNewTag(3, true);
|
m_tabpanel->GetBtnsListCtrl()->showNewTag(3, true);
|
||||||
|
|
Loading…
Reference in New Issue