mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
Fix build when -DENABLE_DISCORD_RPC=OFF (#1551)
* added ifdef for discordrpc * replaced discordrpc include correctly
This commit is contained in:
@@ -173,6 +173,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
|
||||
BackgroundMusicPlayer::getInstance().setVolume(val);
|
||||
});
|
||||
|
||||
#ifdef ENABLE_DISCORD_RPC
|
||||
connect(ui->discordRPCCheckbox, &QCheckBox::stateChanged, this, [](int val) {
|
||||
Config::setEnableDiscordRPC(val);
|
||||
auto* rpc = Common::Singleton<DiscordRPCHandler::RPC>::Instance();
|
||||
@@ -183,6 +184,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
|
||||
rpc->shutdown();
|
||||
}
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
// Input TAB
|
||||
|
||||
Reference in New Issue
Block a user