diff options
author | Henrik Brix Andersen <henrik@brixandersen.dk> | 2012-02-26 22:44:07 +0400 |
---|---|---|
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | 2012-02-26 22:44:15 +0400 |
commit | ca4996521034039b672fc4ec7a3f99a791cb5baa (patch) | |
tree | 6d60fe8865544110ab4238078cf3c3f03b2d8403 /lib/Slic3r/GUI/SkeinPanel.pm | |
parent | 9332319e10bcc2d51eed58de21b5dfe4f5943799 (diff) |
Fail silently if Growl was stopped after Slic3r was started
Diffstat (limited to 'lib/Slic3r/GUI/SkeinPanel.pm')
-rw-r--r-- | lib/Slic3r/GUI/SkeinPanel.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 92f901382..ede4b4543 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -222,8 +222,10 @@ sub do_slice { 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}); + eval { + $self->{growler}->notify(Event => 'SKEIN_DONE', Title => 'Slicing Done!', Message => $message) + if ($self->{growler}); + }; Wx::MessageDialog->new($self, $message, 'Done!', wxOK | wxICON_INFORMATION)->ShowModal; }; |