mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 15:45:46 +00:00
discord_impl: Remove global system instances
This commit is contained in:
parent
b6387b3e2f
commit
aeab40e338
3 changed files with 13 additions and 6 deletions
|
@ -3431,7 +3431,7 @@ void GMainWindow::OnLanguageChanged(const QString& locale) {
|
|||
void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
|
||||
#ifdef USE_DISCORD_PRESENCE
|
||||
if (state) {
|
||||
discord_rpc = std::make_unique<DiscordRPC::DiscordImpl>();
|
||||
discord_rpc = std::make_unique<DiscordRPC::DiscordImpl>(system);
|
||||
} else {
|
||||
discord_rpc = std::make_unique<DiscordRPC::NullImpl>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue