feat: icon for downloads

This commit is contained in:
Benexl
2025-07-25 22:17:42 +03:00
parent ad499657e0
commit d475dda41c

View File

@@ -39,8 +39,8 @@ def main(ctx: Context, state: State) -> State | InternalDirective:
ctx, state, UserMediaListStatus.PLANNING
),
f"{'🔎 ' if icons else ''}Search": _create_search_media_list(ctx, state),
f"{'<EFBFBD> ' if icons else ''}Downloads": _create_downloads_action(ctx, state),
f"{'<EFBFBD>🔔 ' if icons else ''}Recently Updated": _create_media_list_action(
f"{'🏠 ' if icons else ''}Downloads": _create_downloads_action(ctx, state),
f"{'🔔 ' if icons else ''}Recently Updated": _create_media_list_action(
ctx, state, MediaSort.UPDATED_AT_DESC
),
f"{'' if icons else ''}Popular": _create_media_list_action(
@@ -223,7 +223,8 @@ def _create_recent_media_action(ctx: Context, state: State) -> MenuAction:
def _create_downloads_action(ctx: Context, state: State) -> MenuAction:
"""Create action to navigate to the downloads menu."""
def action():
return State(menu_name=MenuName.DOWNLOADS)
return action