From be03d0b15d918b687ba9c2b471208eac7ce80e6a Mon Sep 17 00:00:00 2001 From: HDB-Li Date: Fri, 27 Mar 2020 21:19:36 +0800 Subject: [PATCH] Update LLShortCutModel.m Closes #90 --- LLDebugTool/Core/Component/ShortCut/Function/LLShortCutModel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LLDebugTool/Core/Component/ShortCut/Function/LLShortCutModel.m b/LLDebugTool/Core/Component/ShortCut/Function/LLShortCutModel.m index 3651183d..2b7c01f7 100644 --- a/LLDebugTool/Core/Component/ShortCut/Function/LLShortCutModel.m +++ b/LLDebugTool/Core/Component/ShortCut/Function/LLShortCutModel.m @@ -55,7 +55,7 @@ + (LLShortCutModel *)resetStandardUserDefaultsModel { dispatch_once(&onceToken, ^{ _resetStandardUserDefaultsModel = [[LLShortCutModel alloc] initWithName:@"Reset User Defaults" action:^NSString *_Nullable { - [NSUserDefaults resetStandardUserDefaults]; + [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:[NSBundle mainBundle].bundleIdentifier]; return nil; }]; });