Skip to content

Commit

Permalink
fix: show toast in main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 26, 2023
1 parent 5455d3d commit 17b2546
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ - (void)startOCRImage:(NSImage *)image actionType:(EZActionType)actionType {
if (actionType == EZActionTypeScreenshotOCR) {
[inputText copyToPasteboardSafely];

[EZToast showSuccessToast];
dispatch_block_on_main_safely(^{
[EZToast showSuccessToast];
});

return;
}
Expand Down

0 comments on commit 17b2546

Please sign in to comment.