mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-14 15:31:08 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
e0caa144a6
commit
65eefc6998
1 changed files with 5 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ static const NSUInteger GROUP_TYPE = 'psyt'; // PoomSmart/YouGroupSettings
|
||||||
|
|
||||||
@interface YTSettingsSectionItemManager (uYouPlus)
|
@interface YTSettingsSectionItemManager (uYouPlus)
|
||||||
- (void)updateTweakSectionWithEntry:(id)entry;
|
- (void)updateTweakSectionWithEntry:(id)entry;
|
||||||
- (NSString *)getCacheSize;
|
// - (NSString *)getCacheSize;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
extern NSBundle *uYouPlusBundle();
|
extern NSBundle *uYouPlusBundle();
|
||||||
|
|
@ -133,6 +133,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
|
/* BROKEN
|
||||||
- (NSString *)getCacheSize {
|
- (NSString *)getCacheSize {
|
||||||
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
||||||
NSArray *filesArray = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath:cachePath error:nil];
|
NSArray *filesArray = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath:cachePath error:nil];
|
||||||
|
|
@ -149,6 +150,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
|
|
||||||
return [formatter stringFromByteCount:folderSize];
|
return [formatter stringFromByteCount:folderSize];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
%new(v@:@)
|
%new(v@:@)
|
||||||
- (void)updateTweakSectionWithEntry:(id)entry {
|
- (void)updateTweakSectionWithEntry:(id)entry {
|
||||||
NSMutableArray *sectionItems = [NSMutableArray array];
|
NSMutableArray *sectionItems = [NSMutableArray array];
|
||||||
|
|
@ -199,6 +201,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
];
|
];
|
||||||
[sectionItems addObject:exitYT];
|
[sectionItems addObject:exitYT];
|
||||||
|
|
||||||
|
/* DISABLED
|
||||||
# pragma mark - Cache
|
# pragma mark - Cache
|
||||||
SECTION_HEADER(@"Cache");
|
SECTION_HEADER(@"Cache");
|
||||||
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
||||||
|
|
@ -220,6 +223,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
[sectionItems addObject:clearCache];
|
[sectionItems addObject:clearCache];
|
||||||
|
*/
|
||||||
|
|
||||||
# pragma mark - App theme
|
# pragma mark - App theme
|
||||||
SECTION_HEADER(LOC(@"THEME_OPTIONS"));
|
SECTION_HEADER(LOC(@"THEME_OPTIONS"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue