         present(alert, animated: true, completion: {
             // Bugfix: iOS9 - Tint not fully Applied without Reapplying
             alert.view.tintColor = UIColor.piwigoColorOrange()
-            if #available(iOS 13.0, *) {
-                alert.overrideUserInterfaceStyle = Model.sharedInstance().isDarkPaletteActive ? .dark : .light
-            } else {
-                // Fallback on earlier versions
-            }
-            alert.popoverPresentationController?.sourceView = tableView
-            alert.popoverPresentationController?.permittedArrowDirections = .left
-            alert.popoverPresentationController?.sourceRect = rectOfCellInTableView
-            present(alert, animated: true, completion: {
-                // Bugfix: iOS9 - Tint not fully Applied without Reapplying
-                alert.view.tintColor = UIColor.piwigoColorOrange()
-            })
-        default:
-            break
-        }
+        })
     }
 
     

        var diff: [PiwigoAlbumData] = []

        // Look for categories which are not already displayed
        for category in allCategories {

            // Non-admin Community users can only upload in specific albums
            if !Model.sharedInstance().hasAdminRights && !category.hasUploadRights {
                continue
            }

            // Only add sub-categories of tapped category
            if ((category.nearestUpperCategory != categoryTapped.albumId) ||
                (category.albumId == currentCategory)) {
                continue
            }

            // Is this category already in displayed list?
            var doesNotExist = true
            for existingCat in categories {

                if category.albumId == existingCat.albumId {
                    doesNotExist = false
                    break
                }
            }
            if doesNotExist {
                diff.append(category)
            }
        }

        // Build list of categories to be displayed
        for category in diff {

            // Should we add sub-categories?
            if category.upperCategories.count > 0 {
                var indexOfParent = 0
                for existingCategory in categories {

                    if category.containsUpperCategory(existingCategory.albumId) {
                        categories.insert(category, at: indexOfParent + 1)
                        break

        var diff: [PiwigoAlbumData] = []

        // Look for categories which are not already displayed
        /// - Smart albums should not be proposed
        /// - Non-admin Community users can only upload in specific albums
        allCategories.filter({ $0.albumId > kPiwigoSearchCategoryId })
            .filter({ Model.sharedInstance().hasAdminRights || $0.hasUploadRights })
            .forEach { category in
            // Is this category already in displayed list?
            if !categories.contains(where: { $0.albumId == category.albumId }) {
                diff.append(category)
            }
        }

        // Build list of categories to be displayed
        diff.forEach { category in
            if category.parentAlbumId == 0 {
                categories.append(category)
            }
        }

        // Add Community private categories
        for category in comCategories {
            // Is this category already in displayed list?
            if !categories.contains(where: { $0.albumId == category.albumId }) {
                categories.append(category)
            }
        }
