|
@@ -1193,6 +1193,17 @@
|
|
|
[app settingThemingColor:capabilities.themingColor];
|
|
|
[CCCoreData addCapabilities:capabilities account:app.activeAccount];
|
|
|
|
|
|
+ // Download Theming Background
|
|
|
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
|
|
|
+
|
|
|
+ UIImage *themingBackground = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[capabilities.themingBackground stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]];
|
|
|
+ if (themingBackground)
|
|
|
+ [UIImagePNGRepresentation(themingBackground) writeToFile:[NSString stringWithFormat:@"%@/themingBackground.png", app.directoryUser] atomically:YES];
|
|
|
+ else
|
|
|
+ [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/themingBackground.png", app.directoryUser] error:nil];
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
// Search bar if change version
|
|
|
if (app.serverVersion != capabilities.versionMajor) {
|
|
|
|