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

View file

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