mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
1e3fe80a79
commit
ae9924deac
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
|
||||
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
||||
NSArray *filesArray = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath:cachePath error:nil];
|
||||
|
|
|
|||
Loading…
Reference in a new issue