mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
FIX: try fix the image shown problem
jira: [STUDIO-9627] Change-Id: I78e83c5072c8be46df7300703072554dc6e1fce9 (cherry picked from commit 6b9d9b5ed7d7cb2664647face05b76a2726fa85e)
This commit is contained in:
@@ -916,7 +916,7 @@ void BindMachineDialog::on_show(wxShowEvent &event)
|
|||||||
if (event.IsShown()) {
|
if (event.IsShown()) {
|
||||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
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->SetBitmap(bitmap);
|
||||||
m_printer_img->Refresh();
|
m_printer_img->Refresh();
|
||||||
m_printer_img->Show();
|
m_printer_img->Show();
|
||||||
@@ -1133,7 +1133,7 @@ void UnBindMachineDialog::on_show(wxShowEvent &event)
|
|||||||
if (event.IsShown()) {
|
if (event.IsShown()) {
|
||||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
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->SetBitmap(bitmap);
|
||||||
m_printer_img->Refresh();
|
m_printer_img->Refresh();
|
||||||
m_printer_img->Show();
|
m_printer_img->Show();
|
||||||
|
|||||||
Reference in New Issue
Block a user