From 80bd434e5e1f951629b9ffab08b48fefb092194e Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Thu, 16 Feb 2012 22:52:57 +0100 Subject: [PATCH] Remove last remains of close-after-slicing option. --- lib/Slic3r/GUI/SkeinPanel.pm | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 42cb1ddbf..c33b36191 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -213,17 +213,13 @@ sub do_slice { $process_dialog->Destroy; undef $process_dialog; - if (!$main::opt{close_after_slicing}) { - my $message = sprintf "%s was successfully sliced in %d minutes and %.3f seconds.", - $input_file_basename, int($skein->processing_time/60), - $skein->processing_time - int($skein->processing_time/60)*60; - $self->{growler}->notify(Event => 'SKEIN_DONE', Title => 'Slicing Done!', Message => $message) - if ($self->{growler}); - Wx::MessageDialog->new($self, $message, 'Done!', - wxOK | wxICON_INFORMATION)->ShowModal; - } else { - $self->GetParent->Destroy(); # quit - } + my $message = sprintf "%s was successfully sliced in %d minutes and %.3f seconds.", + $input_file_basename, int($skein->processing_time/60), + $skein->processing_time - int($skein->processing_time/60)*60; + $self->{growler}->notify(Event => 'SKEIN_DONE', Title => 'Slicing Done!', Message => $message) + if ($self->{growler}); + Wx::MessageDialog->new($self, $message, 'Done!', + wxOK | wxICON_INFORMATION)->ShowModal; }; $self->catch_error(sub { $process_dialog->Destroy if $process_dialog }); }