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

Add "pin" action to usercards and reply threads #4692

Merged
merged 3 commits into from
Jul 1, 2023

Conversation

Mm2PL
Copy link
Collaborator

@Mm2PL Mm2PL commented Jun 18, 2023

Description

Closes #4685

@Mm2PL Mm2PL requested a review from pajlada June 27, 2023 21:21
@pajlada pajlada enabled auto-merge (squash) July 1, 2023 15:33
@pajlada pajlada merged commit f915eab into master Jul 1, 2023
15 of 16 checks passed
@pajlada pajlada deleted the feature/just_add_a_pin_action branch July 1, 2023 16:38
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

@@ -62,6 +62,11 @@ ReplyThreadPopup::ReplyThreadPopup(bool closeAutomatically, QWidget *parent,
}
return "";
}},
{"pin",
[this](std::vector<QString> /*arguments*/) -> QString {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: the parameter #1 is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]

Suggested change
[this](std::vector<QString> /*arguments*/) -> QString {
[this](const std::vector<QString>& /*arguments*/) -> QString {

@@ -231,6 +231,11 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
this->underlyingChannel_->sendMessage(msg);
return "";
}},
{"pin",
[this](std::vector<QString> /*arguments*/) -> QString {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: the parameter #1 is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]

Suggested change
[this](std::vector<QString> /*arguments*/) -> QString {
[this](const std::vector<QString>& /*arguments*/) -> QString {

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.

Hotkey for Pinning a Window
2 participants