Skip to content

Commit

Permalink
feat: support search in several dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcent committed Nov 18, 2023
1 parent 6dd8eca commit f199a47
Show file tree
Hide file tree
Showing 12 changed files with 733 additions and 910 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,20 @@ class ApiCaller {
return
}

val apiCallUI = actionContext.instance(ApiCallUI::class)
apiCallUI.updateRequestList(requests)
apiCallUI.showUI()
val uiWeakReference = WeakReference(apiCallUI)
project.putUserData(API_CALL_UI, uiWeakReference)
actionContext.on(EventKey.ON_COMPLETED) {
project.putUserData(API_CALL_UI, null)
uiWeakReference.clear()
actionContext.runInSwingUI {

val apiCallUI = actionContext.instance(ApiCallUI::class)
apiCallUI.updateRequestList(requests)
apiCallUI.showUI()

actionContext.runAsync {
val uiWeakReference = WeakReference(apiCallUI)
project.putUserData(API_CALL_UI, uiWeakReference)
actionContext.on(EventKey.ON_COMPLETED) {
project.putUserData(API_CALL_UI, null)
uiWeakReference.clear()
}
}
}
} catch (e: Exception) {
logger.traceError("Apis exported failed", e)
Expand Down

This file was deleted.

Loading

0 comments on commit f199a47

Please sign in to comment.