Browse Source

remove sharing button for fav collection

Neeraj Gupta 2 years ago
parent
commit
25a218e1fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/ui/viewer/gallery/gallery_app_bar_widget.dart

+ 2 - 1
lib/ui/viewer/gallery/gallery_app_bar_widget.dart

@@ -255,7 +255,8 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
     final List<Widget> actions = <Widget>[];
     if (Configuration.instance.hasConfiguredAccount() &&
         widget.selectedFiles.files.isEmpty &&
-        widget.type == GalleryType.ownedCollection) {
+        widget.type == GalleryType.ownedCollection &&
+        widget.collection?.type != CollectionType.favorites) {
       actions.add(
         Tooltip(
           message: "Share",