mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 07:41:59 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
c40c81ef8d
commit
d13a0307fb
1 changed files with 6 additions and 0 deletions
|
|
@ -71,6 +71,12 @@ SWITCH3(
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
static void ResetNetworkSettings() { // "Refresh Connection"
|
||||||
|
NSURLSession *session = [NSURLSession sharedSession];
|
||||||
|
[session invalidateAndCancel];
|
||||||
|
[session resetWithCompletionHandler:^{
|
||||||
|
}];
|
||||||
|
}
|
||||||
static NSString *GetCacheSize() { // YTLite - @dayanch96
|
static NSString *GetCacheSize() { // YTLite - @dayanch96
|
||||||
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];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue