feat(media-action-menu): add exit option

This commit is contained in:
Benexl
2025-07-26 21:32:42 +03:00
parent 460d3c7d94
commit 44cf9c3da7
2 changed files with 4 additions and 2 deletions

View File

@@ -45,7 +45,9 @@ def media_actions(ctx: Context, state: State) -> State | InternalDirective:
f"{' ' if icons else ''}Add/Update List": _manage_user_media_list(ctx, state),
f"{'' if icons else ''}Score Anime": _score_anime(ctx, state),
f"{' ' if icons else ''}View Info": _view_info(ctx, state),
f"{'📀 ' if icons else ''}Change Provider": _change_provider(ctx, state),
f"{'📀 ' if icons else ''}Change Provider (Current: {ctx.config.general.provider.value.upper()})": _change_provider(
ctx, state
),
f"{'🔘 ' if icons else ''}Toggle Auto Select Anime (Current: {ctx.config.general.auto_select_anime_result})": _toggle_config_state(
ctx, state, "AUTO_ANIME"
),
@@ -59,6 +61,7 @@ def media_actions(ctx: Context, state: State) -> State | InternalDirective:
ctx, state, "TRANSLATION_TYPE"
),
f"{'🔙 ' if icons else ''}Back to Results": lambda: InternalDirective.BACK,
f"{'' if icons else ''}Exit": lambda: InternalDirective.EXIT,
}
choice = ctx.selector.choose(

View File

@@ -11,7 +11,6 @@ from ..registry import MediaRegistryService
logger = logging.getLogger(__name__)
# TODO: Implement stuff like syncing btw local and remote
class WatchHistoryService:
def __init__(
self,