longer notifications
This commit is contained in:
parent
406b783a1a
commit
2322c0e14f
1 changed files with 15 additions and 0 deletions
|
|
@ -366,6 +366,21 @@ class OpenRAGTUI(App):
|
||||||
self.env_manager = EnvManager()
|
self.env_manager = EnvManager()
|
||||||
self.docling_manager = DoclingManager() # Initialize singleton instance
|
self.docling_manager = DoclingManager() # Initialize singleton instance
|
||||||
|
|
||||||
|
def notify(
|
||||||
|
self,
|
||||||
|
message: str,
|
||||||
|
*,
|
||||||
|
title: str = "",
|
||||||
|
severity: str = "information",
|
||||||
|
timeout: float | None = None,
|
||||||
|
markup: bool = True,
|
||||||
|
) -> None:
|
||||||
|
"""Override notify to make notifications last 20 seconds by default."""
|
||||||
|
# If timeout is None (default), make it 20 seconds
|
||||||
|
if timeout is None:
|
||||||
|
timeout = 20.0
|
||||||
|
super().notify(message, title=title, severity=severity, timeout=timeout, markup=markup)
|
||||||
|
|
||||||
def on_mount(self) -> None:
|
def on_mount(self) -> None:
|
||||||
"""Initialize the application."""
|
"""Initialize the application."""
|
||||||
# Check for runtime availability and show appropriate screen
|
# Check for runtime availability and show appropriate screen
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue