Show the title when offline (#1347)

* Channel text for offline chats

* Title refresh timer

* Fixed typo

* Refresh title when room id is loaded

* removed timer

* Typo

* Loaded on demand when hovered over

* removed the extra api request

* Moved refreshTitle function call

* Added thottling for 10s

* Fixed formating style

* reformat

* make status fetcher safer

* Requested changes from fourtf
This commit is contained in:
CommName
2019-10-12 15:09:12 +02:00
committed by fourtf
parent 8153aa7d40
commit dc1e4d2544
3 changed files with 67 additions and 0 deletions
+4
View File
@@ -69,6 +69,7 @@ public:
virtual bool hasHighRateLimit() const override;
virtual bool canReconnect() const override;
virtual void reconnect() override;
void refreshTitle();
// Data
const QString &subscriptionUrl();
@@ -166,6 +167,9 @@ private:
QObject lifetimeGuard_;
QTimer liveStatusTimer_;
QTimer chattersListTimer_;
QTime titleRefreshedTime_;
const int titleRefreshPeriod_ = 10;
friend class TwitchIrcServer;
friend class TwitchMessageBuilder;