Skip to content

Commit

Permalink
新抓的作品應該顯示在最上面
Browse files Browse the repository at this point in the history
  • Loading branch information
DaidoujiChen committed Oct 30, 2014
1 parent e09f2c0 commit 38956f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ - (void)checkEndOfFile {
//如果 cache 有暫存就殺光光
[[[FilesManager cacheFolder] fcd:@"Hentai"] rd:self.hentaiKey];
LWPSafe(
[HentaiSaveLibraryArray addObject:saveInfo];
[HentaiSaveLibraryArray insertObject:saveInfo atIndex:0];
[HentaiCacheLibraryDictionary removeObjectForKey:self.hentaiKey];
LWPForceWrite();
)
Expand Down
2 changes: 1 addition & 1 deletion e-Hentai/PhotoViewController/PhotoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ - (void)checkEndOfFile {
[self.hentaiFilesManager moveToPath:[saveFolder.currentPath stringByAppendingPathComponent:self.hentaiKey]];
NSDictionary *saveInfo = @{ @"hentaiKey":self.hentaiKey, @"images":self.hentaiImageURLs, @"hentaiResult":self.hentaiResults, @"hentaiInfo":self.hentaiInfo };
LWPSafe(
[HentaiSaveLibraryArray addObject:saveInfo];
[HentaiSaveLibraryArray insertObject:saveInfo atIndex:0];
LWPForceWrite();
)
self.downloadKey = [HentaiSaveLibraryArray indexOfObject:saveInfo];
Expand Down

0 comments on commit 38956f9

Please sign in to comment.