Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 4, 2024

Fixes #6306

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Bnyro Bnyro merged commit b94ad14 into libre-tube:master Oct 4, 2024
3 checks passed
}

if (!PlayerHelper.isAutoPlayEnabled(playlistId != null)) return
if (!PlayerHelper.isAutoPlayEnabled(playlistId != null) && !isOnQueueClick) return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we instead do !PlayerHelper.isAutoPlayEnabled(playlistId != null) && nextId == null, since in theory autoplay will never call this function with any video id provided (if I remember correctly how I intended to write that code) whereas the nextId is set when tapping a video in the queue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same applies for your other PR, I probably merged that too quickly before thinking)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it worked in that way too, I opened another PR

@alejandro-alzate
Copy link

cool.

@ghost ghost deleted the fix/next-video-with-autoplay-off branch October 5, 2024 07:12
@Bnyro Bnyro mentioned this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playlist menu is basically dead

2 participants