mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Disable Growl notifications if register() fails - this prevents a deadlock on growler->notify()
This commit is contained in:
		
							parent
							
								
									1eac452d71
								
							
						
					
					
						commit
						93687c1491
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue