fix: prepare and pin external LUT snapshots before acknowledging thumbnail application

这个提交包含在:
mac 于 2026-11-01 15:05:42 +08:00 提交
1 父节点 a2c8dfafcf
当前提交 593aad9ecb
12 个文件已更改
+247 -49

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

+4 -3
查看文件
@@ -2,15 +2,16 @@
@class DYLUTLibrary;
/// A nonmodal browser. Selecting a validated thumbnail applies that LUT.
/// All UI and selection callbacks run on the main thread.
typedef NSProgress * (^DYLUTSelectionHandler)(NSString *path,void (^completion)(NSError *error));
/// A nonmodal browser. The handler finishes asynchronously on the main thread
/// after decoding, GPU preparation and the host edit have actually succeeded.
@interface DYLUTBrowser : NSWindowController
@property(nonatomic,readonly) BOOL visible;
- (instancetype)initWithLibrary:(DYLUTLibrary *)library
preview:(NSData *)rgba
selectedPath:(NSString *)path
palette:(NSDictionary *)palette
selection:(void (^)(NSString *path))selection;
selection:(DYLUTSelectionHandler)selection;
- (void)showRelativeToView:(NSView *)view;
/// Attach to the FxRemoteWindow API's supplied parent; the caller owns that API.
/// Completion, double-click and close dismiss through closeAction exactly once.