Fail silently if Growl::GNTP fails
This commit is contained in:
parent
f451bb2bd0
commit
9332319e10
1 changed files with 4 additions and 2 deletions
|
@ -81,8 +81,10 @@ sub new {
|
|||
|
||||
if (eval "use Growl::GNTP; 1") {
|
||||
# register growl notifications
|
||||
eval {
|
||||
$self->{growler} = Growl::GNTP->new(AppName => 'Slic3r'); #, AppIcon => "path/to/my/icon.gif");
|
||||
$self->{growler}->register([{Name => 'SKEIN_DONE', DisplayName => 'Slicing Done'}]);
|
||||
};
|
||||
}
|
||||
|
||||
my $tabpanel = Wx::Notebook->new($self, -1, Wx::wxDefaultPosition, Wx::wxDefaultSize, &Wx::wxNB_TOP);
|
||||
|
|
Loading…
Reference in a new issue