This commit is contained in:
opa334 2023-01-21 16:41:20 +01:00
parent c6b513defc
commit 4db76d3ec5
2 changed files with 5 additions and 2 deletions

View File

@ -348,6 +348,8 @@ UIImage* imageWithSize(UIImage* image, CGSize size)
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"ApplicationCell"]; cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"ApplicationCell"];
} }
if(!indexPath || indexPath.row > (_cachedAppInfos.count - 1)) return cell;
TSAppInfo* appInfo = _cachedAppInfos[indexPath.row]; TSAppInfo* appInfo = _cachedAppInfos[indexPath.row];
NSString* appId = [appInfo bundleIdentifier]; NSString* appId = [appInfo bundleIdentifier];
NSString* appVersion = [appInfo versionString]; NSString* appVersion = [appInfo versionString];

View File

@ -191,6 +191,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
{ {
fetchLatestLdidVersion(^(NSString* latestVersion) fetchLatestLdidVersion(^(NSString* latestVersion)
{ {
if(!latestVersion) return;
dispatch_async(dispatch_get_main_queue(), ^ dispatch_async(dispatch_get_main_queue(), ^
{ {
NSURL* ldidURL = [NSURL URLWithString:@"https://github.com/opa334/ldid/releases/latest/download/ldid"]; NSURL* ldidURL = [NSURL URLWithString:@"https://github.com/opa334/ldid/releases/latest/download/ldid"];
@ -214,7 +215,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
}]; }];
}); });
} }
else else if(location)
{ {
spawnRoot(rootHelperPath(), @[@"install-ldid", location.path, latestVersion], nil, nil); spawnRoot(rootHelperPath(), @[@"install-ldid", location.path, latestVersion], nil, nil);
dispatch_async(dispatch_get_main_queue(), ^ dispatch_async(dispatch_get_main_queue(), ^