re
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
14
pipeline.py
14
pipeline.py
@@ -860,6 +860,20 @@ def get_last_result_items() -> List[Any]:
|
||||
return []
|
||||
|
||||
|
||||
def get_last_selectable_result_items() -> List[Any]:
|
||||
"""Get items from the last *selectable* result table, ignoring display-only items.
|
||||
|
||||
This is useful when a selection stage should target the last visible selectable table
|
||||
(e.g., a playlist/search table), even if a prior action command emitted items and
|
||||
populated _DISPLAY_ITEMS.
|
||||
"""
|
||||
if _LAST_RESULT_TABLE is None:
|
||||
return list(_LAST_RESULT_ITEMS)
|
||||
if _is_selectable_table(_LAST_RESULT_TABLE):
|
||||
return list(_LAST_RESULT_ITEMS)
|
||||
return []
|
||||
|
||||
|
||||
def get_last_result_table_source_command() -> Optional[str]:
|
||||
"""Get the source command from the last displayed result table.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user