Fix compilation error when ENABLE_DISCORD_RPC is not set

This commit is contained in:
Exzap 2023-03-02 11:09:54 +01:00 committed by GitHub
parent b87465fd8a
commit 43c9a4eccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -334,8 +334,8 @@ MainWindow::MainWindow()
LoadSettings(); LoadSettings();
#ifdef ENABLE_DISCORD_RPC
auto& config = GetConfig(); auto& config = GetConfig();
#ifdef ENABLE_DISCORD_RPC
if (config.use_discord_presence) if (config.use_discord_presence)
m_discord = std::make_unique<DiscordPresence>(); m_discord = std::make_unique<DiscordPresence>();
#endif #endif