Skip to content

Commit

Permalink
Only reroute to new window if modal dialog is not open anxdpanic#896
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Sep 13, 2024
1 parent ffc0bf0 commit 9a3a310
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/lib/youtube_plugin/kodion/abstract_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ def on_goto_page(provider, context, re_match):
page_token = ''
params = dict(params, page=page, page_token=page_token)

if context.is_plugin_path(
context.get_infolabel('Container.FolderPath'),
partial=True,
):
if (not context.get_infobool('System.HasActiveModalDialog')
and context.is_plugin_path(
context.get_infolabel('Container.FolderPath'),
partial=True,
)):
return provider.reroute(context=context, path=path, params=params)
return provider.navigate(context.clone(path, params))

Expand Down

0 comments on commit 9a3a310

Please sign in to comment.