FIX:fixed some issue with send print and ams ui

Change-Id: I1a37bad6ec1f193f9fd98c74506b3bb0358ece6d
This commit is contained in:
tao wang 2022-12-06 18:08:29 +08:00 committed by Lane.Wei
parent 67c2f5a285
commit 0db1b52b23
18 changed files with 292 additions and 32 deletions

View file

@ -105,6 +105,7 @@ void BBLStatusBarSend::set_progress(int val)
}
m_prog->SetValue(val);
set_percent_text(wxString::Format("%d%%", val));
m_sizer->Layout();
}
@ -120,6 +121,11 @@ void BBLStatusBarSend::set_range(int val)
}
}
void BBLStatusBarSend::clear_percent()
{
set_percent_text(wxEmptyString);
}
void BBLStatusBarSend::show_progress(bool show)
{
if (show) {
@ -278,7 +284,6 @@ void BBLStatusBarSend::reset()
set_percent_text(wxString::Format("%d%%", 0));
}
void BBLStatusBarSend::set_font(const wxFont &font)
{
m_self->SetFont(font);