Skip to content

Conversation

@Dalton-V
Copy link
Contributor

Added an option to track shiny sounds without notifications. Keeping the current functionality of only recording one video per session (the first shiny sound. With the assumption that the user wouldn't want 50 videos of the same shiny if they leave the program running overnight.

return false;
}

if (action == ShinySoundDetectedAction::NO_NOTIFICATIONS && current_count > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should just be an unconditional return here. If we're ignoring shinies, we don't need to do anything here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What if the user selects "No Notifications" and "Take Video"
image

If the code returns here on every shiny the video would never be recorded. Maybe I should add a listener to this and hide the video option if no notifications are selected?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh lol. I intended this to be "ignore all shinies". But this works too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When reading your message
" add an extra enum that will ignore all shinies (no notifications), but it will continue counting them."
I suppose I took "(no notifications)" as the literal ask. But I could see how an ignore option would be nice especially if there are more options or additional logic added later.

I have time to change this today. Let me know what you think people would find the most useful.

  1. Leave it as it is
  2. Change to ignore shinies, hide other options to avoid the questions about "Take Video dosen't work when I ignore shinies" 😆
  3. Add another enum to support both options. "No notifications" and "Ignore shinies do nothing"

I have no opinion on what would be the best option from above. Doesn't bother me to change anything, just let me know.

@Mysticial Mysticial merged commit ed85d1f into PokemonAutomation:main Nov 25, 2025
6 checks passed
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.

2 participants