Return explicit 0 from have_version_check() to avoid wxMenuItem->Enable errors
This commit is contained in:
parent
3bcf1da702
commit
0ad78eaf55
@ -282,7 +282,8 @@ sub save_settings {
|
|||||||
sub have_version_check {
|
sub have_version_check {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
|
|
||||||
return $Slic3r::have_threads && $Slic3r::build && eval "use LWP::UserAgent; 1";
|
# return an explicit 0
|
||||||
|
return ($Slic3r::have_threads && $Slic3r::build && eval "use LWP::UserAgent; 1") || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub check_version {
|
sub check_version {
|
||||||
|
Loading…
Reference in New Issue
Block a user