mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'multiselect' of github.com:davep/textual into multiselect
This commit is contained in:
@@ -260,7 +260,7 @@ class SelectionList(Generic[SelectionType], OptionList):
|
||||
"""Post a message that the selected collection has changed, where appropriate.
|
||||
|
||||
Note:
|
||||
A message will only be send if `_send_messages` is `True`. This
|
||||
A message will only be sent if `_send_messages` is `True`. This
|
||||
makes this safe to call before the widget is ready for posting
|
||||
messages.
|
||||
"""
|
||||
@@ -387,7 +387,7 @@ class SelectionList(Generic[SelectionType], OptionList):
|
||||
value: The value to toggle.
|
||||
|
||||
Returns:
|
||||
Always `True`.
|
||||
`True`.
|
||||
"""
|
||||
if value in self._selected:
|
||||
self._deselect(value)
|
||||
|
||||
Reference in New Issue
Block a user