Stopping a signal

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Liv

I was wondering if there’s a way to stop a signal in code once it’s emitted or if it is possible to just send a short signal.

:bust_in_silhouette: Reply From: Magso

Do you mean disconnect the signal or ignore it? Use pass in an else statement to ignore it.

#if conditions

or to disconnect it use disconnect(signal, target, method name)