mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 07:40:41 -08:00
fix(menu): runtime setting of provider
This commit is contained in:
@@ -308,6 +308,8 @@ def _change_provider(ctx: Context, state: State) -> MenuAction:
|
||||
"Select Provider", [provider.value for provider in ProviderName]
|
||||
)
|
||||
ctx.config.general.provider = ProviderName(new_provider)
|
||||
# force a reset of the provider
|
||||
ctx._provider = None
|
||||
return InternalDirective.RELOAD
|
||||
|
||||
return action
|
||||
|
||||
Reference in New Issue
Block a user