Toggle mark for flows.
(self, flows: Sequence[flow.Flow])
| 79 | # FIXME: this will become view.mark.toggle later |
| 80 | @command.command("flow.mark.toggle") |
| 81 | def mark_toggle(self, flows: Sequence[flow.Flow]) -> None: |
| 82 | """ |
| 83 | Toggle mark for flows. |
| 84 | """ |
| 85 | for i in flows: |
| 86 | if i.marked: |
| 87 | i.marked = "" |
| 88 | else: |
| 89 | i.marked = ":default:" |
| 90 | ctx.master.addons.trigger(hooks.UpdateHook(flows)) |
| 91 | |
| 92 | @command.command("flow.kill") |
| 93 | def kill(self, flows: Sequence[flow.Flow]) -> None: |