mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 07:32:36 +08:00 
			
		
		
		
	1.5.0~b2
This commit is contained in:
		
							parent
							
								
									c6b513defc
								
							
						
					
					
						commit
						4db76d3ec5
					
				@ -344,10 +344,12 @@ UIImage* imageWithSize(UIImage* image, CGSize size)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
 | 
					- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
 | 
				
			||||||
	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ApplicationCell"];
 | 
						UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ApplicationCell"];
 | 
				
			||||||
	if (!cell) {
 | 
						if(!cell) {
 | 
				
			||||||
		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];
 | 
				
			||||||
 | 
				
			|||||||
@ -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(), ^
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user