Spaces:
Sleeping
Sleeping
Update ui/statusui.py
Browse files- ui/statusui.py +10 -3
ui/statusui.py
CHANGED
|
@@ -34,9 +34,16 @@ class StatusUI:
|
|
| 34 |
)
|
| 35 |
|
| 36 |
def append(self, message: str):
|
| 37 |
-
|
| 38 |
-
self.
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
def shutdown(self):
|
| 42 |
"""Trigger the shutdown sequence manually."""
|
|
|
|
| 34 |
)
|
| 35 |
|
| 36 |
def append(self, message: str):
|
| 37 |
+
|
| 38 |
+
if not self._is_shutdown:
|
| 39 |
+
# Add message + force UI update
|
| 40 |
+
self._log += f"\n{time.strftime('%H:%M:%S')} {message}"
|
| 41 |
+
self._log_output.update(
|
| 42 |
+
value=self._log,
|
| 43 |
+
# Optional: Ensure visual consistency
|
| 44 |
+
interactive=False,
|
| 45 |
+
autoscroll=True
|
| 46 |
+
)
|
| 47 |
|
| 48 |
def shutdown(self):
|
| 49 |
"""Trigger the shutdown sequence manually."""
|