Fixed time on mobile rich presence

This commit is contained in:
brostos 2023-07-22 16:44:09 +03:00 committed by GitHub
parent cb862471bf
commit c74b47009e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: