From c74b47009e8fc6e624d54b9b9692fb182fee68e1 Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Sat, 22 Jul 2023 16:44:09 +0300 Subject: [PATCH] Fixed time on mobile rich presence --- plugins/utilities/discord_richpresence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/utilities/discord_richpresence.py b/plugins/utilities/discord_richpresence.py index e0042ed..a189329 100644 --- a/plugins/utilities/discord_richpresence.py +++ b/plugins/utilities/discord_richpresence.py @@ -737,6 +737,8 @@ class DiscordRP(babase.Plugin): self.rpc_thread.close() def on_app_resume(self) -> None: + global start_time + start_time = time.time() self.rpc_thread.start() def _get_current_activity_name(self) -> str | None: