修复后台在线失败影响本地按钮并保存133候选

这个提交包含在:
mac 于 2026-11-11 21:06:29 +08:00 提交
1 父节点 c7f6311506
当前提交 7f833757da
9 个文件已更改
+63 -9

没有与搜索条件相匹配的文件

+3 -1
查看文件
@@ -121,10 +121,12 @@ int main(int argc,const char **argv){@autoreleasepool{
require([[browser valueForKey:@"folderPaths"]containsObject:@"胶片/人像/柔和"],@"expanding local parent restores descendants");
[browser close];NSUInteger closedRequests=requests.count;[browser release];
pump(^{return activePreviews==0;});require(requests.count==closedRequests,@"closing stops all preview work without scheduling more uploads");
paid=YES;NSUInteger beforeEmpty=count(@"/preview");
paid=NO;NSUInteger beforeEmpty=count(@"/preview");
DYLUTBrowser *empty=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];
[empty showInRemoteParent:parent close:nil];pump(^{return [empty valueForKey:@"onlineCatalogTask"]==nil&&[empty valueForKey:@"libraryTask"]==nil;});
require(count(@"/preview")==beforeEmpty,@"opening without a cached frame waits without uploading fallback imagery");
require([[empty valueForKey:@"reveal"]isEnabled],@"background online permission failure never disables local folder access");
paid=YES;[empty performSelector:@selector(loadOnlineCatalog)];pump(^{return [empty valueForKey:@"onlineCatalogTask"]==nil;});
NSMutableData *portrait=[NSMutableData dataWithLength:360*1280*16];float *portraitSamples=(float *)portrait.mutableBytes;for(NSUInteger i=0;i<360*1280;i++)portraitSamples[i*4+3]=1;
[empty updatePreview:@{@"standard":portrait,@"standardSize":[NSValue valueWithSize:NSMakeSize(360,1280)],@"time":@3}];
pump(^{return count(@"/preview")==beforeEmpty+10&&[[empty valueForKey:@"onlineTransfers"]count]==0;});