aboutsummaryrefslogblamecommitdiff
path: root/helpers/actions/stop_all_actions.py
blob: 4ea875a7ca3d6aa9c7d17c43cbdce0a32ee94ffa (plain) (tree)
1
2
3
4
5
6
7
8






                                                              
 





                                                    
def run(action, key_start_time=0, other_only=False, **kwargs):
    if other_only:
        action.mapping.stop_all_running(
                except_key=action.key,
                key_start_time=key_start_time)
    else:
        action.mapping.stop_all_running()

def description(action, other_only=False, **kwargs):
    message = "stopping all actions"
    if other_only:
        message += " except this key"

    return message