Просмотр исходного кода

don't delete notification too early after update

Falko Schindler 1 год назад
Родитель
Сommit
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: