浏览代码

more methods with return values

Rodja Trappe 2 年之前
父节点
当前提交
ccb654371b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/native.py

+ 1 - 1
nicegui/native.py

@@ -51,7 +51,7 @@ def create_proxy(cls):
         if get_type_hints(attr).get('return', None) is not None:
             return True
         # NOTE we define the names of window.* methods that return a value here until https://github.com/r0x0r/pywebview/pull/1108 gets released
-        if name == 'create_file_dialog':
+        if name in ['create_file_dialog', 'create_confirmation_dialog', 'get_cookies', 'get_elements', 'get_current_url']:
             return True
         return False