Преглед изворни кода

it seems updating the parent view is enough to show the notification

Rodja Trappe пре 3 година
родитељ
комит
896ae065b9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      nicegui/elements/notify.py

+ 1 - 1
nicegui/elements/notify.py

@@ -29,5 +29,5 @@ class Notify(Element):
 
 
     async def notify_async(self):
     async def notify_async(self):
         self.view.notify = True
         self.view.notify = True
-        await self.wp.update()
+        await self.parent_view.update()
         self.view.notify = False
         self.view.notify = False