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

don't delete notification too early after update

Falko Schindler пре 1 година
родитељ
комит
482d8775e9
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      nicegui/elements/notification.py

+ 1 - 4
nicegui/elements/notification.py

@@ -76,10 +76,7 @@ class Notification(Element, component='notification.js'):
                 if not await self.client.run_javascript(query):
                     delete()
 
-            if timeout:
-                Timer(timeout, delete, once=True)
-            else:
-                Timer(1.0, try_delete)
+            Timer(1.0, try_delete)
 
     @property
     def message(self) -> str: