- hostCardButtonActionDelegate

- better theme color management
This commit is contained in:
TrueZhuanjia
2025-05-31 12:00:32 +08:00
parent 13853449d2
commit 6ae3beb2a5
17 changed files with 449 additions and 181 deletions
+3 -1
View File
@@ -46,7 +46,9 @@ static const int MAX_REQUEST_COUNT = 4;
- (void) retrieveAssetsFromHost:(TemporaryHost*)host {
for (TemporaryApp* app in host.appList) {
if (![[NSFileManager defaultManager] fileExistsAtPath:[AppAssetManager boxArtPathForApp:app]]) {
// if (![[NSFileManager defaultManager] fileExistsAtPath:[AppAssetManager boxArtPathForApp:app]]) {
if (true) {
NSLog(@"retrieve appImage");
AppAssetRetriever* retriever = [[AppAssetRetriever alloc] init];
retriever.app = app;
retriever.host = host;
+2
View File
@@ -26,6 +26,8 @@ static const int MAX_ATTEMPTS = 5;
if (appAssetResp.data != nil) {
NSString* boxArtPath = [AppAssetManager boxArtPathForApp:self.app];
NSLog(@"appImage from host not nil for app: %@", boxArtPath);
[[NSFileManager defaultManager] createDirectoryAtPath:[boxArtPath stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:nil];
[appAssetResp.data writeToFile:boxArtPath atomically:NO];
break;