瀏覽代碼

#286 fix FastAPI example

Falko Schindler 2 年之前
父節點
當前提交
3dc32da1b1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      nicegui/run_with.py

+ 1 - 0
nicegui/run_with.py

@@ -14,6 +14,7 @@ def run_with(
     binding_refresh_interval: float = 0.1,
     exclude: str = '',
 ) -> None:
+    globals.ui_run_has_been_called = True
     globals.title = title
     globals.favicon = favicon
     globals.dark = dark