Return explicit 0 from have_version_check() to avoid wxMenuItem->Enable errors

This commit is contained in:
Alessandro Ranellucci 2013-06-16 16:06:20 +02:00
parent 3bcf1da702
commit 0ad78eaf55

View File

@ -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 {