Skip to content

Commit

Permalink
增加todo,待后续解决
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Tianxu committed Mar 9, 2023
1 parent 3fc2a6a commit f581289
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components-react/windows/AddSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ export default function AddSource() {
setFaceMaskSourceWindow(source, newWinTitle);
});
*/
// TODO 利用延时来保证Face Mask窗口已经显示,不够准确,应该使用回调
setTimeout(setFaceMaskSourceWindow, 1000, source, newWinTitle);
// TODO 利用延时来保证Face Mask窗口已经显示,不够准确。
// 测试时,延迟时间改为1秒,就会出现捕获窗口失败的情况
// 因此,应该使用回调的方式确保成功捕获窗口。
setTimeout(setFaceMaskSourceWindow, 2000, source, newWinTitle);
}

async function addNew() {
Expand Down

0 comments on commit f581289

Please sign in to comment.