mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 21:16:01 +08:00
Enable menu icons on older Windows and Linux Wx
This commit is contained in:
parent
aa8b6afe8b
commit
310212ed30
@ -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…
x
Reference in New Issue
Block a user