UI: Fix preprocessor directives for platform integrations
The macros `YOUTUBE_ENABLED`, `RESTREAM_ENABLED`, and `TWITCH_ENABLED`
are not defined when the associated features are not enabled.
When the code was originally implemented, there were definitions to set
`0` if the feature is disabled. However a later commit 349372b removes
the definition. Now, the use of `#ifdef` is better than just `#if`.
This commit is contained in:
parent
8789c43959
commit
39d4b53f6b
4 changed files with 26 additions and 26 deletions
|
|
@ -626,7 +626,7 @@ private:
|
|||
bool broadcastActive = false;
|
||||
bool broadcastReady = false;
|
||||
QPointer<QThread> youtubeStreamCheckThread;
|
||||
#if YOUTUBE_ENABLED
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
void YoutubeStreamCheck(const std::string &key);
|
||||
void ShowYouTubeAutoStartWarning();
|
||||
void YouTubeActionDialogOk(const QString &id, const QString &key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue