Disable Growl notifications if register() fails - this prevents a deadlock on growler->notify()
This commit is contained in:
parent
1eac452d71
commit
93687c1491
@ -14,6 +14,8 @@ sub BUILD {
|
||||
$self->growler(Growl::GNTP->new(AppName => 'Slic3r', AppIcon => $icon));
|
||||
$self->growler->register([{Name => 'SKEIN_DONE', DisplayName => 'Slicing Done'}]);
|
||||
};
|
||||
# if register() fails (for example because of a timeout), disable growler at all
|
||||
$self->growler(undef) if $@;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user