mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Refactored calls to Wx::Bitmap->new
This commit is contained in:
parent
9576973b57
commit
f006e66549
15 changed files with 64 additions and 63 deletions
|
@ -34,7 +34,7 @@ sub new {
|
|||
wxBU_LEFT | wxBU_EXACTFIT);
|
||||
$btn->SetFont($bold ? $Slic3r::GUI::small_bold_font : $Slic3r::GUI::small_font);
|
||||
if ($Slic3r::GUI::have_button_icons) {
|
||||
$btn->SetBitmap(Wx::Bitmap->new("$Slic3r::var/$icon.png", wxBITMAP_TYPE_PNG));
|
||||
$btn->SetBitmap(Wx::Bitmap->new($Slic3r::var->("$icon.png"), wxBITMAP_TYPE_PNG));
|
||||
$btn->SetBitmapPosition($pos);
|
||||
}
|
||||
EVT_BUTTON($self, $btn, $handler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue