mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 03:22:17 +00:00
Only init discordRPC when not in debugMode
This commit is contained in:
parent
50ce9e6855
commit
b87eecf6b6
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue