marinofaggiana 5 jaren geleden
bovenliggende
commit
78cccb0929
2 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 1 1
      iOSClient/Brand/NCBrand.swift
  2. 4 1
      iOSClient/Main/NCMainCommon.swift

+ 1 - 1
iOSClient/Brand/NCBrand.swift

@@ -119,7 +119,7 @@ class NCBrandColor: NSObject {
     @objc public let use_themingLogo:                   Bool = false     
     @objc public let use_middlewarePing:                Bool = false
     @objc public let use_storeLocalAutoUploadAll:       Bool = false
-    @objc public let use_imi_viewer:                    Bool = true                                                 // Don't touch me !!
+    @objc public let use_imi_viewer:                    Bool = false                                                 // Don't touch me !!
 
     @objc public let disable_intro:                     Bool = false
     @objc public let disable_request_login_url:         Bool = false

+ 4 - 1
iOSClient/Main/NCMainCommon.swift

@@ -1302,7 +1302,10 @@ class NCNetworkingMain: NSObject, CCNetworkingDelegate {
                 
                 if metadata.typeFile == k_metadataTypeFile_imagemeter {
                     
-                    if NCBrandOptions.sharedInstance.use_imi_viewer == false { return }
+                    if NCBrandOptions.sharedInstance.use_imi_viewer == false {
+                        NCMainCommon.sharedInstance.openIn(metadata: metadata)
+                        return
+                    }
                     
                     let source = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadata.ocId, fileNameView: metadata.fileNameView))
                     let destination =  URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadata.ocId))