mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixes #385, moderator mode icon not showing when broadcaster
This commit is contained in:
parent
a48a233785
commit
88c609df43
|
@ -40,8 +40,8 @@ AccountPopupWidget::AccountPopupWidget(ChannelPtr _channel)
|
|||
connect(this, &AccountPopupWidget::refreshButtons, this,
|
||||
&AccountPopupWidget::actuallyRefreshButtons, Qt::QueuedConnection);
|
||||
|
||||
app->accounts->Twitch.currentUserChanged.connect([=] {
|
||||
auto currentTwitchUser = app->accounts->Twitch.getCurrent();
|
||||
app->accounts->Twitch.currentUserChanged.connect([this] {
|
||||
auto currentTwitchUser = getApp()->accounts->Twitch.getCurrent();
|
||||
if (!currentTwitchUser) {
|
||||
// No twitch user set (should never happen)
|
||||
return;
|
||||
|
|
|
@ -94,6 +94,9 @@ SplitHeader::SplitHeader(Split *_split)
|
|||
this->initializeChannelSignals(); //
|
||||
});
|
||||
|
||||
this->managedConnect(app->accounts->Twitch.currentUserChanged,
|
||||
[this] { this->updateModerationModeIcon(); });
|
||||
|
||||
this->setMouseTracking(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <QWidget>
|
||||
#include <pajlada/settings/setting.hpp>
|
||||
#include <pajlada/signals/connection.hpp>
|
||||
#include <pajlada/signals/signalholder.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -23,7 +24,7 @@ namespace widgets {
|
|||
|
||||
class Split;
|
||||
|
||||
class SplitHeader : public BaseWidget
|
||||
class SplitHeader : public BaseWidget, pajlada::Signals::SignalHolder
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Reference in a new issue