恢复默认皮肤
This commit is contained in:
@@ -51,6 +51,14 @@
|
||||
fromViewController:(UIViewController *)presenting
|
||||
mode:(KBSkinSourceMode)mode
|
||||
completion:(KBSkinApplyCompletion)completion {
|
||||
// 模式为“恢复默认皮肤”时,直接调用 KBSkinManager 的 reset 接口,忽略 JSON 内容。
|
||||
if (mode == KBSkinSourceModeResetToDefault) {
|
||||
[[KBSkinManager shared] resetToDefault];
|
||||
if (completion) completion(YES);
|
||||
[KBHUD showInfo:KBLocalized(@"已恢复默认键盘皮肤")];
|
||||
return;
|
||||
}
|
||||
|
||||
if (skinJSON.count == 0) {
|
||||
if (completion) completion(NO);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user