blob: 14a1a945d2df34d3e7a0b5160c1879666aecb20d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
|