소스 검색

move-files: show option for owned_collection only

Neeraj Gupta 3 년 전
부모
커밋
3099a1a9ae
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lib/ui/gallery_app_bar_widget.dart

+ 2 - 1
lib/ui/gallery_app_bar_widget.dart

@@ -178,7 +178,8 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
 
   List<Widget> _getActions(BuildContext context) {
     List<Widget> actions = <Widget>[];
-    if (Configuration.instance.hasConfiguredAccount()) {
+    if (Configuration.instance.hasConfiguredAccount() &&
+        widget.type == GalleryAppBarType.owned_collection) {
       actions.add(IconButton(
         icon: Icon(Platform.isAndroid
             ? Icons.arrow_right_alt_rounded