refactor(eventsub): Respect "Hide moderation actions" explicitly (#6041)
This commit is contained in:
@@ -202,6 +202,11 @@ bool StreamerMode::isEnabled() const
|
||||
return this->private_->isEnabled();
|
||||
}
|
||||
|
||||
bool StreamerMode::shouldHideModActions() const
|
||||
{
|
||||
return getSettings()->streamerModeHideModActions && this->isEnabled();
|
||||
}
|
||||
|
||||
void StreamerMode::start()
|
||||
{
|
||||
this->private_->start();
|
||||
|
||||
@@ -20,6 +20,9 @@ public:
|
||||
|
||||
[[nodiscard]] virtual bool isEnabled() const = 0;
|
||||
|
||||
/// Returns true if streamer mode is enabled & the settings to hide mod actions is enabled
|
||||
[[nodiscard]] virtual bool shouldHideModActions() const = 0;
|
||||
|
||||
virtual void start() = 0;
|
||||
|
||||
Q_SIGNALS:
|
||||
@@ -39,6 +42,8 @@ public:
|
||||
|
||||
bool isEnabled() const override;
|
||||
|
||||
bool shouldHideModActions() const override;
|
||||
|
||||
void start() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user