FIX: print-error dialog: hide cancel button, fix msg display

Change-Id: I26fe098cedd16ee568060f12bb5aea855e9ae279
This commit is contained in:
tao.jin 2022-10-14 15:19:55 +08:00 committed by Lane.Wei
parent 508f814bbc
commit a0e273fd06
3 changed files with 19 additions and 5 deletions

View file

@ -1410,7 +1410,7 @@ void StatusPanel::update_error_message()
show_error_message(error_msg);
//hint dialog
BOOST_LOG_TRIVIAL(info) << "Print error! " << error_msg;
ConfirmHintDialog print_error_dlg(this->GetParent(), wxID_ANY, _L("Warning"));
ConfirmHintDialog print_error_dlg(this->GetParent(), wxID_ANY, _L("Warning"), ConfirmHintDialog::ButtonStyle::ONLY_CONFIRM);
print_error_dlg.SetHint(error_msg);
print_error_dlg.ShowModal();
}