Эх сурвалжийг харах

Theming color

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 жил өмнө
parent
commit
c70373a1aa

+ 1 - 0
iOSClient/Brand/NCBrand.swift

@@ -476,6 +476,7 @@ class NCBrandColor: NSObject {
         }
         
         createImagesThemingColor()
+        NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterChangeTheming)
     }
     #endif
 

+ 0 - 2
iOSClient/Networking/NCService.swift

@@ -149,7 +149,6 @@ class NCService: NSObject {
             guard errorCode == 0, let data = data else {
                 if errorCode == 401 || errorCode == 403 {
                     NCBrandColor.shared.settingThemingColor(account: account)
-                    NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterChangeTheming)
 
                     NCNetworkingCheckRemoteUser.shared.checkRemoteUser(account: account, errorCode: errorCode, errorDescription: errorDescription)
                 }
@@ -171,7 +170,6 @@ class NCService: NSObject {
             let themingColorTextNew = NCManageDatabase.shared.getCapabilitiesServerString(account: account, elements: NCElementsJSON.shared.capabilitiesThemingColorText)
             if themingColorNew != NCBrandColor.shared.themingColor || themingColorElementNew != NCBrandColor.shared.themingColorElement || themingColorTextNew != NCBrandColor.shared.themingColorText {
                 NCBrandColor.shared.settingThemingColor(account: account)
-                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterChangeTheming)
             }
 
             // File Sharing