do not show warning if already shared
This commit is contained in:
parent
9b7c3ec7e0
commit
8dd3acac71
1 changed files with 4 additions and 0 deletions
|
@ -253,6 +253,10 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
|||
collection == null) {
|
||||
return false;
|
||||
}
|
||||
// collection is already shared
|
||||
if (collection.sharees.isNotEmpty || collection.publicURLs.isNotEmpty) {
|
||||
return false;
|
||||
}
|
||||
final collectionIDsWithHiddenFiles =
|
||||
await FilesDB.instance.getCollectionIDsOfHiddenFiles(
|
||||
Configuration.instance.getUserID(),
|
||||
|
|
Loading…
Add table
Reference in a new issue