Browse Source

new view share

marinofaggiana 5 years ago
parent
commit
707a47dd8d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      iOSClient/Share/NCSharePaging.swift

+ 3 - 0
iOSClient/Share/NCSharePaging.swift

@@ -214,6 +214,7 @@ class NCShareHeaderView: UIView {
     @IBOutlet weak var info: UILabel!
     @IBOutlet weak var favorite: UIButton!
     
+    private let appDelegate = UIApplication.shared.delegate as! AppDelegate
     var fileID = ""
 
     @IBAction func touchUpInsideFavorite(_ sender: UIButton) {
@@ -227,6 +228,8 @@ class NCShareHeaderView: UIView {
                     } else {
                         self.favorite.setImage(CCGraphics.changeThemingColorImage(UIImage.init(named: "favorite"), width: 40, height: 40, color: NCBrandColor.sharedInstance.textInfo), for: .normal)
                     }
+                    self.appDelegate.activeMain?.reloadDatasource(self.appDelegate.activeMain?.serverUrl, fileID: nil, action: Int(k_action_NULL))
+                    self.appDelegate.activeFavorites?.reloadDatasource(nil, action: Int(k_action_NULL))
                 }
             })
         }