Commit 3798e7f
committed
fix(context): prevent adding visual selection when selection context is disabled
Add a guard in M.add_visual_selection to check M.is_context_enabled('selection').
When the selection context is disabled, notify the user with a warning and return
false to avoid performing selection operations when the feature is turned off.
This should close #3861 parent fb34b46 commit 3798e7f
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
0 commit comments