@@ -225,7 +225,7 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
225225
226226 // Wait 1.5 seconds before resetting the button alpha
227227 try ? await Task . sleep ( for: . seconds( 1.5 ) )
228- self . mainNavigationController? . resetPlusButtonAlpha ( )
228+ self . mainNavigationController? . menuPlus ? . resetPlusButtonAlpha ( )
229229 }
230230 }
231231
@@ -384,7 +384,7 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
384384 // MARK: - NotificationCenter
385385
386386 @objc func applicationWillResignActive( _ notification: NSNotification ) {
387- mainNavigationController? . resetPlusButtonAlpha ( )
387+ self . mainNavigationController? . menuPlus ? . resetPlusButtonAlpha ( )
388388 }
389389
390390 @objc func closeRichWorkspaceWebView( ) {
@@ -428,7 +428,7 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
428428 self . collectionView. collectionViewLayout. invalidateLayout ( )
429429
430430 Task {
431- await ( self . navigationController as? NCMainNavigationController ) ? . updateRightMenu ( )
431+ await ( self . navigationController as? NCMainNavigationController ) ? . updateMenuOption ( )
432432 }
433433 }
434434
@@ -512,9 +512,10 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
512512 func searchBarTextDidBeginEditing( _ searchBar: UISearchBar ) {
513513 // TIP
514514 dismissTip ( )
515- //
516- mainNavigationController? . hiddenPlusButton ( true )
517- //
515+
516+ // (+)
517+ self . mainNavigationController? . menuPlus? . hiddenPlusButton ( true )
518+
518519 if !isSearchingMode {
519520 self . isSearchingMode = true
520521 self . dataSource. removeAll ( )
@@ -533,7 +534,7 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
533534
534535 func searchBarCancelButtonClicked( _ searchBar: UISearchBar ) {
535536 // (+)
536- mainNavigationController? . hiddenPlusButton ( false )
537+ self . mainNavigationController? . menuPlus ? . hiddenPlusButton ( false )
537538
538539 self . isSearchingMode = false
539540 self . networkSearchInProgress = false
@@ -709,7 +710,7 @@ class NCCollectionViewCommon: UIViewController, NCAccountSettingsModelDelegate,
709710 delegate. transferReloadData ( serverUrl: self . serverUrl)
710711 }
711712
712- await ( self . navigationController as? NCMainNavigationController ) ? . updateRightMenu ( )
713+ await ( self . navigationController as? NCMainNavigationController ) ? . updateMenuOption ( )
713714 }
714715
715716 func getServerData( forced: Bool = false ) async { }
@@ -880,7 +881,8 @@ extension NCCollectionViewCommon: NCTransferDelegate {
880881 }
881882
882883 if status == self . global. networkingStatusCreateFolder {
883- if serverUrl == self . serverUrl,
884+ if error == . success,
885+ serverUrl == self . serverUrl,
884886 selector != self . global. selectorUploadAutoUpload,
885887 let metadata = await NCManageDatabase . shared. getMetadataAsync ( predicate: NSPredicate ( format: " account == %@ AND serverUrl == %@ AND fileName == %@ " , account, serverUrl, fileName) ) {
886888 self . pushMetadata ( metadata)
0 commit comments