代码调整(少量) - ScriptClient by cyfung1031 · Pull Request #1172 · scriptscat/scriptcat

Comment on lines +256 to +257

importByUrlsLocal(urls); // 異步卻不用等候?
setImportVisible(false); // 不等待 importByUrlsLocal?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 setImportVisible 不用等 importByUrlsLocal 完成就 set false
这是正确吗? @CodFrm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

正确,会弹出导入结果窗口 showImportResult

不过异步等待一下会更好

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

importByUrlsLocal(urls); // 異步卻不用等候?
setImportVisible(false); // 不等待 importByUrlsLocal?
await importByUrlsLocal(urls);
setImportVisible(false);

@CodFrm