mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix mod, unmod, vip, unvip buttons in User Card (#4387)
This commit is contained in:
parent
28bdf440fd
commit
6380fb5198
|
@ -16,6 +16,7 @@
|
||||||
- Minor: Added support for HTTP and Socks5 proxies through environment variables. (#4321)
|
- Minor: Added support for HTTP and Socks5 proxies through environment variables. (#4321)
|
||||||
- Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351)
|
- Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351)
|
||||||
- Bugfix: Fixed User Card moderation actions not working after Twitch IRC chat command deprecation. (#4378)
|
- Bugfix: Fixed User Card moderation actions not working after Twitch IRC chat command deprecation. (#4378)
|
||||||
|
- Bugfix: Fixed User Card broadcaster actions (mod, unmod, vip, unvip) not working after Twitch IRC chat command deprecation. (#4387)
|
||||||
- Bugfix: Fixed crash that would occur when performing certain actions after removing all tabs. (#4271)
|
- Bugfix: Fixed crash that would occur when performing certain actions after removing all tabs. (#4271)
|
||||||
- Bugfix: Fixed highlight sounds not reloading on change properly. (#4194)
|
- Bugfix: Fixed highlight sounds not reloading on change properly. (#4194)
|
||||||
- Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209)
|
- Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209)
|
||||||
|
|
|
@ -419,16 +419,28 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
|
||||||
});
|
});
|
||||||
|
|
||||||
QObject::connect(mod.getElement(), &Button::leftClicked, [this] {
|
QObject::connect(mod.getElement(), &Button::leftClicked, [this] {
|
||||||
this->underlyingChannel_->sendMessage("/mod " + this->userName_);
|
QString value = "/mod " + this->userName_;
|
||||||
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
});
|
});
|
||||||
QObject::connect(unmod.getElement(), &Button::leftClicked, [this] {
|
QObject::connect(unmod.getElement(), &Button::leftClicked, [this] {
|
||||||
this->underlyingChannel_->sendMessage("/unmod " + this->userName_);
|
QString value = "/unmod " + this->userName_;
|
||||||
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
});
|
});
|
||||||
QObject::connect(vip.getElement(), &Button::leftClicked, [this] {
|
QObject::connect(vip.getElement(), &Button::leftClicked, [this] {
|
||||||
this->underlyingChannel_->sendMessage("/vip " + this->userName_);
|
QString value = "/vip " + this->userName_;
|
||||||
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
});
|
});
|
||||||
QObject::connect(unvip.getElement(), &Button::leftClicked, [this] {
|
QObject::connect(unvip.getElement(), &Button::leftClicked, [this] {
|
||||||
this->underlyingChannel_->sendMessage("/unvip " + this->userName_);
|
QString value = "/unvip " + this->userName_;
|
||||||
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
// userstate
|
// userstate
|
||||||
|
|
Loading…
Reference in a new issue