浏览代码

new view share

marinofaggiana 5 年之前
父节点
当前提交
707a47dd8d
共有 1 个文件被更改,包括 3 次插入0 次删除
  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))
                 }
             })
         }