完成正式宿主基础验收并保护在线同帧预览参考,准备构建 130

这个提交包含在:
mac 于 2026-11-11 19:07:18 +08:00 提交
1 父节点 5abe64481d
当前提交 0631e8b6c3
11 个文件已更改
+5242 -6

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

+4 -1
查看文件
@@ -617,7 +617,6 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
}
- (void)updatePreview:(NSDictionary *)frames{
if(_closed||_previewFrames==frames||(!frames[@"standard"]&&!frames[@"high"]))return;
if(_onlineMode){NSDictionary *snapshot=[frames copy];[_previewFrames release];_previewFrames=snapshot;return;}
NSString *currentQuality=[self previewQualityForFrames:_previewFrames],*nextQuality=[self previewQualityForFrames:frames];
NSValue *currentSize=_previewFrames[[currentQuality stringByAppendingString:@"Size"]];
NSValue *nextSize=frames[[nextQuality stringByAppendingString:@"Size"]];
@@ -626,6 +625,9 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
// the browser's pre-click reference until the playhead moves.
if(sameSize&&[_selectionFrameTime isEqual:frames[@"time"]])return;
[_selectionFrameTime release];_selectionFrameTime=nil;
// Online uploads retain the same pre-application reference as local previews.
// Only a new playhead time may replace it after applying a look.
if(_onlineMode){NSDictionary *snapshot=[frames copy];[_previewFrames release];_previewFrames=snapshot;return;}
NSData *current=_previewFrames[currentQuality],*next=frames[nextQuality];
BOOL unchanged=sameSize&&[current isEqualToData:next];
NSDictionary *snapshot=[frames copy];
@@ -846,6 +848,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
if(online){[_localFolder release];_localFolder=[_folder copy];[_folder release];_folder=[@"*" copy];_onlinePage=1;}
else {[_folder release];_folder=[(_localFolder?:@"*")copy];}
_onlineMode=online;_importFiles.title=online?@"预览当前帧":@"导入文件…";_importFolder.title=online?@"登录 / 权限":@"导入文件夹…";_reveal.title=online?@"下一页":@"打开 LUT 文件夹";
_importFiles.accessibilityLabel=online?@"在线预览当前帧":@"导入 LUT 文件";_importFolder.accessibilityLabel=online?@"主 APP 登录与在线 LUT 权限":@"导入 LUT 文件夹";
_reveal.enabled=YES;
_search.stringValue=@"";[self invalidatePreviewImages];[self rebuildFolders];[self rebuildGrid];
if(online)[self loadOnlineCatalog];else [self setStatus:@"单击缩略图应用 LUT"];