aboutsummaryrefslogtreecommitdiff
path: root/src/operation.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(selectable): prevent clash with other's custom operationsalex-ds132025-12-301-21/+28
| | | | | | | | | | | | - Make the `global_selection` operation check for the new `IndependentSelection` when trying to downcast_mut. - `IndependentSelection` uses wraps a `RefCell` so it can change its inner value. Theres some helper methods to create this `IndependentSelection` from an existing value and to then get the changed value once the operation is done. This way the `Text` and `Rich` simply need to pass this `IndependentSelection` to the operation `custom` method which will make sure it wont clash with any other custom operations that could be using `&mut bool` as well.
* feat(selectable): draft implementation of selectable widgetalex-ds132025-12-301-0/+100