fix(log_panel): rename self.log to self._log_widget to avoid Textual property conflict
All checks were successful
Build and Release .deb / build-deb (push) Successful in 21s

This commit is contained in:
enzo 2026-05-13 02:07:25 +02:00
parent f4db16327f
commit eed84f36e8

View file

@ -23,21 +23,21 @@ class LogPanel(Vertical):
def __init__(self):
super().__init__()
self.log = None
self._log_widget = None
def compose(self):
with Horizontal(id="log-toolbar"):
yield Button("⬅ Retour", id="log-back")
self.log = RichLog(id="log-view", highlight=True)
yield self.log
self._log_widget = RichLog(id="log-view", highlight=True)
yield self._log_widget
def write(self, line: str):
if self.log:
self.log.write(line)
if self._log_widget:
self._log_widget.write(line)
def clear(self):
if self.log:
self.log.clear()
if self._log_widget:
self._log_widget.clear()
def on_button_pressed(self, event: Button.Pressed):
if event.button.id == "log-back":