From b87eecf6b671d81fa204b91540aa758f867e43df Mon Sep 17 00:00:00 2001 From: NBA2K1 <78034913+NBA2K1@users.noreply.github.com> Date: Sun, 19 Apr 2026 05:18:57 +0200 Subject: [PATCH] Only init discordRPC when not in debugMode --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index a350e06e..d2387a2f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -125,7 +125,8 @@ Future _postLaunchInit(StorageProvider storage) async { : p.join("Mangayomi", "databases"); await Hive.initFlutter(Platform.isAndroid ? "" : hivePath); Hive.registerAdapter(TrackSearchAdapter()); - if (Platform.isMacOS || Platform.isLinux || Platform.isWindows) { + if ((Platform.isMacOS || Platform.isLinux || Platform.isWindows) && + !kDebugMode) { discordRpc = DiscordRPC(applicationId: "1395040506677039157"); await discordRpc?.initialize(); }