Merge pull request #227 from henrikbrixandersen/master
Fail silently if Growl was stopped after Slic3r was started
This commit is contained in:
commit
8cac0f8c87
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue