marinofaggiana 4 年之前
父節點
當前提交
448d11efb5
共有 2 個文件被更改,包括 4 次插入9 次删除
  1. 0 7
      File Provider Extension/FileProviderDomain.swift
  2. 4 2
      iOSClient/AppDelegate.m

+ 0 - 7
File Provider Extension/FileProviderDomain.swift

@@ -87,11 +87,4 @@ class FileProviderDomain: NSObject {
         
         NSFileProviderManager.removeAllDomains { (_) in }
     }
-    
-    @objc func recreateDomains() {
-        
-        NSFileProviderManager.removeAllDomains { (_) in
-            self.recreateDomains()
-        }
-    }
 }

+ 4 - 2
iOSClient/AppDelegate.m

@@ -279,7 +279,10 @@
 // L'applicazione terminerà
 //
 - (void)applicationWillTerminate:(UIApplication *)application
-{    
+{
+    FileProviderDomain *fileProviderDomain = [FileProviderDomain new];
+    [fileProviderDomain removeAllDomains];
+    
     [[NCCommunicationCommon shared] writeLog:@"bye bye"];
 }
 
@@ -321,7 +324,6 @@
     // Registeration domain File Provider
     FileProviderDomain *fileProviderDomain = [FileProviderDomain new];
     [fileProviderDomain registerDomains];
-    //[fileProviderDomain removeAllDomain];
 }
 
 #pragma --------------------------------------------------------------------------------------------