feat: add option to suppress live notifications on startup (#5388)

This commit is contained in:
nerix
2024-07-20 14:19:27 +02:00
committed by GitHub
parent 4a7a5b09ce
commit 0495fbca43
11 changed files with 398 additions and 225 deletions
+4 -9
View File
@@ -238,14 +238,6 @@ public:
// Only TwitchChannel may invoke this signal
pajlada::Signals::NoArgSignal userStateChanged;
/**
* This signals fires whenever the live status is changed
*
* Streams are counted as offline by default, so if a stream does not go online
* this signal will never fire
**/
pajlada::Signals::Signal<bool> liveStatusChanged;
/**
* This signal fires whenever the stream status is changed
*
@@ -270,7 +262,8 @@ public:
const QString &rewardId) const;
// Live status
void updateStreamStatus(const std::optional<HelixStream> &helixStream);
void updateStreamStatus(const std::optional<HelixStream> &helixStream,
bool isInitialUpdate);
void updateStreamTitle(const QString &title);
/**
@@ -338,6 +331,8 @@ private:
void setDisplayName(const QString &name);
void setLocalizedName(const QString &name);
void onLiveStatusChanged(bool isLive, bool isInitialUpdate);
/**
* Returns the localized name of the user
**/