FIX: [STUDIO-3132] modify text of delete files

Change-Id: I74c9c06f41f6c143f56c2aad086381588d059408
This commit is contained in:
chunmao.guo 2023-06-07 19:15:32 +08:00 committed by Lane.Wei
parent 49bbf6bdbb
commit 9c251c59ec
2 changed files with 4 additions and 2 deletions

View file

@ -468,7 +468,9 @@ void MediaFilePanel::doAction(size_t index, int action)
if (action == 0) { if (action == 0) {
if (index == -1) { if (index == -1) {
MessageDialog dlg(this, MessageDialog dlg(this,
wxString::Format(_L("You are going to delete %u files from printer. Are you sure to continue?"), fs->GetSelectCount()), wxString::Format(_L_PLURAL("You are going to delete %u file from printer. Are you sure to continue?",
"You are going to delete %u files from printer. Are you sure to continue?", fs->GetSelectCount()),
fs->GetSelectCount()),
_L("Delete files"), wxYES_NO | wxICON_WARNING); _L("Delete files"), wxYES_NO | wxICON_WARNING);
if (dlg.ShowModal() != wxID_YES) if (dlg.ShowModal() != wxID_YES)
return; return;

View file

@ -2394,7 +2394,7 @@ void PartPlate::update_slice_context(BackgroundSlicingProcess & process)
Slic3r::SlicingStatusEvent *event = new Slic3r::SlicingStatusEvent(EVT_SLICING_UPDATE, 0, status); Slic3r::SlicingStatusEvent *event = new Slic3r::SlicingStatusEvent(EVT_SLICING_UPDATE, 0, status);
//BBS: GUI refactor: add plate info befor message //BBS: GUI refactor: add plate info befor message
if (status.message_type == Slic3r::PrintStateBase::SlicingDefaultNotification) { if (status.message_type == Slic3r::PrintStateBase::SlicingDefaultNotification) {
auto temp = Slic3r::format(_u8L(" plate %1%:"), std::to_string(m_plate_index + 1)); auto temp = Slic3r::format(_u8L(" plate %1%: "), std::to_string(m_plate_index + 1));
event->status.text = temp + event->status.text; event->status.text = temp + event->status.text;
} }
wxQueueEvent(m_plater, event); wxQueueEvent(m_plater, event);