only add collection if the files will be shared

pull/53/head
Zlatin Balevsky 2020-11-03 07:04:25 +00:00
parent a9eebac151
commit e4b395da75
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -788,6 +788,8 @@ class MainFrameModel {
}
void onCollectionDownloadedEvent(CollectionDownloadedEvent e) {
if (!core.muOptions.shareDownloadedFiles)
return
runInsideUIAsync {
localCollections.add(e.collection)
view.collectionsTable.model.fireTableDataChanged()