Don't update progress bar with wxWidgets 2.9.0 and 2.9.1
This commit is contained in:
parent
bed502af3c
commit
72d7e1a5de
@ -140,12 +140,15 @@ sub do_slice {
|
|||||||
$process_dialog = Wx::ProgressDialog->new('Slicing...', "Processing $input_file_basename...",
|
$process_dialog = Wx::ProgressDialog->new('Slicing...', "Processing $input_file_basename...",
|
||||||
100, $self, wxPD_APP_MODAL);
|
100, $self, wxPD_APP_MODAL);
|
||||||
$process_dialog->Pulse;
|
$process_dialog->Pulse;
|
||||||
|
|
||||||
my $skein = Slic3r::Skein->new(
|
my $skein = Slic3r::Skein->new(
|
||||||
input_file => $input_file,
|
input_file => $input_file,
|
||||||
output_file => $main::opt{output},
|
output_file => $main::opt{output},
|
||||||
status_cb => sub {
|
status_cb => sub {
|
||||||
my ($percent, $message) = @_;
|
my ($percent, $message) = @_;
|
||||||
|
if (&Wx::wxVERSION_STRING =~ / 2\.(8\.|9\.[2-9])/) {
|
||||||
$process_dialog->Update($percent, $message);
|
$process_dialog->Update($percent, $message);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
$skein->go;
|
$skein->go;
|
||||||
|
Loading…
Reference in New Issue
Block a user