Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Count the desktop play bar as playing from the app so it checks for progress from another device

Barnabas052273a1a9e9
diff --git a/lib/widgets/desktop_now_playing_bar.dart b/lib/widgets/desktop_now_playing_bar.dart
index 9d26e269..fb930659 100644
--- a/lib/widgets/desktop_now_playing_bar.dart
+++ b/lib/widgets/desktop_now_playing_bar.dart
@@ -236,7 +236,7 @@ class _DesktopNowPlayingBarState extends State<DesktopNowPlayingBar> {
player.isLoadingOrBuffering &&
!player.isPlaying
? null
- : player.togglePlayPause,
+ : () => player.togglePlayPause(fromUi: true),
icon:
player.isLoadingOrBuffering &&
!player.isPlaying