Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only greet once when setting the same mode #301

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

tigarmo
Copy link
Collaborator

@tigarmo tigarmo commented Nov 8, 2024

With this fix, Emitter.set_mode(mode) becomes a no-op if the emitter is already at that mode. This scenario can happen, for example, if the Emitter is initialized with a mode and then the Dispatcher sets the same mode during command-line handling.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

With this fix, ``Emitter.set_mode(mode)`` becomes a no-op if the emitter is
already at that ``mode``. This scenario can happen, for example, if the Emitter
is initialized with a mode and then the Dispatcher sets the same mode during
command-line handling.
@tigarmo tigarmo force-pushed the work/CRAFT-3658-set-mode-repeated branch from 5cf7bf0 to a6c0f9b Compare November 8, 2024 18:56
@tigarmo tigarmo marked this pull request as ready for review November 8, 2024 18:59
@tigarmo tigarmo requested review from bepri and a team November 8, 2024 18:59
Copy link
Contributor

@dariuszd21 dariuszd21 left a comment

Choose a reason for hiding this comment

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

Thank you!

@tigarmo tigarmo merged commit 6fa01e1 into main Nov 8, 2024
12 checks passed
@tigarmo tigarmo deleted the work/CRAFT-3658-set-mode-repeated branch November 8, 2024 19:17
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.

3 participants