ソースを参照

fix NCBrandOptions.sharedInstance.use_themingLogo

marinofaggiana 5 年 前
コミット
e91be7d642
1 ファイル変更4 行追加2 行削除
  1. 4 2
      iOSClient/Networking/NCService.swift

+ 4 - 2
iOSClient/Networking/NCService.swift

@@ -147,8 +147,10 @@ class NCService: NSObject {
                     DispatchQueue.global().async {
                         
                         // Download Logo
-                        let fileNameThemingLogo = CCUtility.getStringUser(self.appDelegate.activeUser, activeUrl: self.appDelegate.activeUrl) + "-themingLogo.png"
-                        NCUtility.sharedInstance.convertSVGtoPNGWriteToUserData(svgUrlString: capabilities!.themingLogo, fileName: fileNameThemingLogo, width: 40, rewrite: true, closure: { (imageNamePath) in })
+                        if NCBrandOptions.sharedInstance.use_themingLogo {
+                            let fileNameThemingLogo = CCUtility.getStringUser(self.appDelegate.activeUser, activeUrl: self.appDelegate.activeUrl) + "-themingLogo.png"
+                            NCUtility.sharedInstance.convertSVGtoPNGWriteToUserData(svgUrlString: capabilities!.themingLogo, fileName: fileNameThemingLogo, width: 40, rewrite: true, closure: { (imageNamePath) in })
+                        }
                         
                         let backgroundURL = capabilities!.themingBackground!.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!
                         let fileNamePath = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(self.appDelegate.activeUser, activeUrl: self.appDelegate.activeUrl) + "-themingBackground.png"