ENH: [STUDIO-4028] RequestUserAttention on printer error

Change-Id: I37f451edcd57059320103093291c6037129a2898
This commit is contained in:
chunmao.guo 2023-08-16 13:45:09 +08:00 committed by Lane.Wei
parent 11fb86a054
commit 3c01e937f8
2 changed files with 3 additions and 0 deletions

View file

@ -645,6 +645,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
m_sizer_main->Add(m_sizer_right, 0, wxBOTTOM | wxEXPAND, FromDIP(5));
Bind(wxEVT_CLOSE_WINDOW, [this](auto& e) {this->on_hide();});
Bind(wxEVT_ACTIVATE, [this](auto& e) { if (!e.GetActive()) this->RequestUserAttention(wxUSER_ATTENTION_ERROR); });
SetSizer(m_sizer_main);
Layout();