소스 검색

fix theming after create new account

Marino Faggiana 7 년 전
부모
커밋
4251c7aecf
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      iOSClient/Settings/CCManageAccount.m

+ 3 - 3
iOSClient/Settings/CCManageAccount.m

@@ -163,8 +163,7 @@
 
 - (void)changeTheming
 {
-    if (self.isViewLoaded && self.view.window)
-        [app changeTheming:self];
+    [app changeTheming:self];
 }
 
 #pragma --------------------------------------------------------------------------------------------
@@ -188,8 +187,9 @@
 
 - (void)loginSuccess:(NSInteger)loginType
 {
-    if (loginType == loginAddForced)
+    if (loginType == loginAddForced) {
         [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initializeMain" object:nil];
+    }
 }
 
 - (void)loginDisappear