Hide gallery overflow menu when files are selected (#1217)

This commit is contained in:
Neeraj Gupta 2023-06-16 09:32:49 +05:30 committed by GitHub
commit c5f1e551f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,6 +244,9 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
List<Widget> _getDefaultActions(BuildContext context) {
final List<Widget> actions = <Widget>[];
if (widget.selectedFiles.files.isNotEmpty) {
return actions;
}
if (Configuration.instance.hasConfiguredAccount() &&
widget.selectedFiles.files.isEmpty &&
(widget.type == GalleryType.ownedCollection ||