Explorar o código

#458 fix kwargs in ui.notify

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
64d9e7dbb2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      nicegui/functions/notify.py

+ 1 - 0
nicegui/functions/notify.py

@@ -24,4 +24,5 @@ def notify(message: Any, *,
     """
     options = {key: value for key, value in locals().items() if not key.startswith('_') and value is not None}
     options['message'] = str(message)
+    options.update(kwargs)
     outbox.enqueue_message('notify', options, globals.get_client().id)