Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Hide the add to existing book picker on BookOrbit servers

Barnabas86334772b2bd
diff --git a/lib/screens/admin_upload_screen.dart b/lib/screens/admin_upload_screen.dart
index 02232793..2fb5ff8f 100644
--- a/lib/screens/admin_upload_screen.dart
+++ b/lib/screens/admin_upload_screen.dart
@@ -927,7 +927,9 @@ class _AdminUploadScreenState extends State<AdminUploadScreen> {
style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w700),
),
const SizedBox(height: 14),
- if (_existingTarget == null)
+ // BookOrbit items carry file names, not a folder path, so the
+ // picker cannot aim an upload there.
+ if (_existingTarget == null && widget.apiService?.isBookOrbit != true)
Align(
alignment: Alignment.centerLeft,
child: OutlinedButton.icon(