From 72d7e1a5de0ab91a47178521b69e230caac11eb3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 26 Nov 2011 16:52:10 +0100 Subject: [PATCH] Don't update progress bar with wxWidgets 2.9.0 and 2.9.1 --- lib/Slic3r/GUI/SkeinPanel.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index f7d29fabb..6fb4d3675 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -140,12 +140,15 @@ sub do_slice { $process_dialog = Wx::ProgressDialog->new('Slicing...', "Processing $input_file_basename...", 100, $self, wxPD_APP_MODAL); $process_dialog->Pulse; + my $skein = Slic3r::Skein->new( input_file => $input_file, output_file => $main::opt{output}, status_cb => sub { my ($percent, $message) = @_; - $process_dialog->Update($percent, $message); + if (&Wx::wxVERSION_STRING =~ / 2\.(8\.|9\.[2-9])/) { + $process_dialog->Update($percent, $message); + } }, ); $skein->go;