FIX: try fix the image shown problem
jira: [STUDIO-9627] Change-Id: I78e83c5072c8be46df7300703072554dc6e1fce9
This commit is contained in:
parent
74f189e807
commit
6b9d9b5ed7
|
@ -913,7 +913,7 @@ void BindMachineDialog::on_show(wxShowEvent &event)
|
|||
if (event.IsShown()) {
|
||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(100));
|
||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
||||
m_printer_img->SetBitmap(bitmap);
|
||||
m_printer_img->Refresh();
|
||||
m_printer_img->Show();
|
||||
|
@ -1133,7 +1133,7 @@ void UnBindMachineDialog::on_show(wxShowEvent &event)
|
|||
if (event.IsShown()) {
|
||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(100));
|
||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
||||
m_printer_img->SetBitmap(bitmap);
|
||||
m_printer_img->Refresh();
|
||||
m_printer_img->Show();
|
||||
|
|
Loading…
Reference in New Issue