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: use selected window for /clearmessages #5489

Merged
merged 4 commits into from
Jul 7, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jul 1, 2024

The fix is pretty small, as it changes getMainWindow to getLastSelectedWindow. Although this works, it's only a temporary solution. Ideally, CommandContext would have an optional split, however this should be done when refactoring the command controller.

Fixes #5488.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/controllers/commands/builtin/Misc.cpp Outdated Show resolved Hide resolved
@jupjohn
Copy link
Contributor

jupjohn commented Jul 2, 2024

Tested 92c4e4e, works as expected 🎉

Chatterino2_5489_ClearMessagesCommandTargetsCorrectSplit.mp4

@pajlada pajlada merged commit 4535823 into Chatterino:master Jul 7, 2024
17 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.

/clearmessages in popout window clears original split
3 participants