mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Enable menu icons on older Windows and Linux Wx
This commit is contained in:
parent
aa8b6afe8b
commit
310212ed30
1 changed files with 2 additions and 1 deletions
|
@ -725,7 +725,8 @@ sub _append_menu_item {
|
||||||
sub _set_menu_item_icon {
|
sub _set_menu_item_icon {
|
||||||
my ($self, $menuItem, $icon) = @_;
|
my ($self, $menuItem, $icon) = @_;
|
||||||
|
|
||||||
if ($icon && $Wx::VERSION >= 0.9927) {
|
# SetBitmap was not available on OS X before Wx 0.9927
|
||||||
|
if ($icon && $menuItem->can('SetBitmap')) {
|
||||||
$menuItem->SetBitmap(Wx::Bitmap->new("$Slic3r::var/$icon", wxBITMAP_TYPE_PNG));
|
$menuItem->SetBitmap(Wx::Bitmap->new("$Slic3r::var/$icon", wxBITMAP_TYPE_PNG));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue