mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 16:29:03 +08:00
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(Growl::GNTP->new(AppName => 'Slic3r', AppIcon => $icon));
|
||||||
$self->growler->register([{Name => 'SKEIN_DONE', DisplayName => 'Slicing Done'}]);
|
$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…
x
Reference in New Issue
Block a user