添加guard 蒙层

This commit is contained in:
2025-11-27 15:34:33 +08:00
parent 2435d760e8
commit 2760a070a3
8 changed files with 270 additions and 11 deletions

View File

@@ -177,4 +177,14 @@ static inline NSMutableDictionary *KBLocBaseKCQuery(void) {
return lang;
}
- (void)reloadFromSharedStorageIfNeeded {
NSString *saved = [[self class] kc_read];
if (saved.length == 0) return;
if ([saved isEqualToString:self.currentLanguageCode]) return;
[self applyLanguage:saved];
[[NSNotificationCenter defaultCenter] postNotificationName:KBLocalizationDidChangeNotification
object:nil];
}
@end