sequenceeditor: refine how multi-select actions are handled
commite143cb44e6b8671cb5c1c8bf9b7b02449c711f84
authorDavid Aguilar <davvid@gmail.com>
Sun, 4 Feb 2024 01:12:45 +0000 (3 17:12 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 4 Feb 2024 01:12:45 +0000 (3 17:12 -0800)
treeb73d4ceb6257b4e865cb9d156568dc7a016bf763
parent0a7904a398349a5c3b11263f4688be7669ff9875
sequenceeditor: refine how multi-select actions are handled

We were previously toggling items individually. This is fine most of the
time but when using multi-select it is preferable to have the entire
selection resolve to a consistent value across all selected items.

Make it so that the "enabled" checkbox and the remarks calculate whether
its state should change based on the selection.

If more items are enabled then all items will become enabled. If more
items are disabled then all items will become disabled. Special-case
having all items enabled or disabled and toggle all items.

Related-to: #1375
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/sequenceeditor.py