6.6.0 - Fix6 - 修复 Temurin 平台无法构建项目

This commit is contained in:
SuperMonster003
2024-12-02 18:03:57 +08:00
parent c30394f24a
commit 9769950fb5
3 changed files with 25 additions and 10 deletions

View File

@@ -186,8 +186,8 @@ class UI(private val scriptRuntime: ScriptRuntime) : AugmentableProxy(scriptRunt
val widgets = scriptRuntime.ui.widgets
if (widgets.contains(viewName)) {
val ctor = widgets.prop(viewName) as NativeFunction
val widget = withRhinoContext {
ctor.construct(it, scriptRuntime.topLevelScope, arrayOf())
val widget = withRhinoContext { ctx ->
ctor.construct(ctx, scriptRuntime.topLevelScope, arrayOf())
} as ScriptableObject
val f = widget.prop("renderInternal") as BaseFunction
return __inflateRhinoRuntime__(scriptRuntime, scriptRuntime.ui.layoutInflater.newInflateContext().also { ctx ->