Fix the custom url sync result callback maybe not canceled the dialog problem in IconRuleManagerTool

This commit is contained in:
2023-02-06 01:59:15 +08:00
parent a5586c8505
commit 3abe4d7800

View File

@@ -246,6 +246,8 @@ object IconRuleManagerTool {
fun doParse(result: () -> Unit = {}) {
wait(context, url) { isDone, content ->
result()
/** 延迟重新回调防止对话框无法取消 */
delayedRun { result() }
IconPackParams(context).also { params ->
when {
isDone -> when {