Only init discordRPC when not in debugMode

This commit is contained in:
NBA2K1 2026-04-19 05:18:57 +02:00
parent 50ce9e6855
commit b87eecf6b6

View file

@ -125,7 +125,8 @@ Future<void> _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();
}