FIx crashing on apply due to invalid variable name and key when checking if discord RPC is on.

This commit is contained in:
csd4ni3l
2025-07-21 14:19:51 +02:00
parent 61be407c2f
commit b0fe713e20

View File

@@ -148,7 +148,7 @@ class Settings(FocusView):
window.vsync = self.data['vsync']
if self.settings_dict['discord_pypresence_client']:
if self.data['discord_rpc']:
if isinstance(self.pypresence_client, FakePyPresence): # the user has enabled pypresence_client in the settings in this session.
start_time = copy.deepcopy(self.pypresence_client.start_time)
self.pypresence_client.close()