소스 검색

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